1.0.8 • Published 10 months ago
@jaliti/google-auth v1.0.8
Google Auth
Generates access tokens to be used with Google's APIs such as Google Search Console and the Indexing endpoints.
Usage
import { SearchConsoleAuth } from "google-auth";
const serviceAccountEmail = "service-account@email.com";
const serviceAccountPrivateKey = "service-account-private-key";
const scAuth = new SearchConsoleAuth({
email: serviceAccountEmail,
privateKey: serviceAccountPrivateKey,
});
const token = scAuth.getAccessToken();
token.isValid();
token.validate();