Jump to top

OAuthProvider

interface

Interface that represents an OAuth provider. Implemented by other providers.

Properties

addScope

</>

Add an OAuth scope to the credential.

addScope: (scope: string) => AuthProvider;

credential

</>

Creates a new AuthCredential.

credential: (token: string | null, secret: undefined | string) => AuthCredential;

getCustomParameters

</>

Retrieve the current list of custom parameters.

getCustomParameters: () => Record<string, string>;

getScopes

</>

Retrieve the current list of OAuth scopes.

getScopes: () => string[];

setCustomParameters

</>

Sets the OAuth custom parameters to pass in an OAuth request for sign-in operations.

setCustomParameters: (customOAuthParameters: Record<string, string>) => AuthProvider;