You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getName(): string: Returns the name of the provider.
getLoginURL(): string: Returns the URL for provider login.
getTokens(code: string): Promise<Tokens>: Exchanges the authorization code for the access token. Returns a Promise that resolves to the tokens (access token, token type, expires in, and optional refresh token).
refreshTokens(refreshToken: string): Promise<Tokens>: Refreshes the access token using the provided refresh token. Returns a Promise that resolves to the updated tokens.
getUserID(accessToken: string): Promise<string>: Fetches the user ID using the provided access token.
getUserEmail(accessToken: string): Promise<string>: Retrieves the user's email using the access token. Returns a Promise that resolves to the user's email.
isEmailVerified(accessToken: string): Promise<boolean>: Checks if the user's email is verified using the access token. Returns a Promise that resolves to a boolean indicating email verification status.
getUserName(accessToken: string): Promise<string>: Retrieves the user's name using the access token. Returns a Promise that resolves to the user's name.
getUser(accessToken: string): Promise<User>: Retrieves the user's information (sub, email, email_verified, name) using the access token. Returns a Promise that resolves to the user object.