Indexable
[key: string]: any
Methods
authURL
- authURL(): string
-
Returns string
buildAuthURL
- buildAuthURL(state, ...opts): string
-
Returns string
client
- client(token): any
-
Returns any
clientId
- clientId(): string
-
Returns string
clientSecret
- clientSecret(): string
-
Returns string
displayName
- displayName(): string
-
Returns string
fetchRawUserInfo
- fetchRawUserInfo(token): string | number[]
-
Returns string | number[]
fetchToken
- fetchToken(code, ...opts): Token
-
pkce
- pkce(): boolean
-
Returns boolean
redirectURL
- redirectURL(): string
-
Returns string
scopes
- scopes(): string[]
-
Returns string[]
setAuthURL
- setAuthURL(url): void
-
Returns void
setClientId
- setClientId(clientId): void
-
Returns void
setClientSecret
- setClientSecret(secret): void
-
Returns void
setContext
- setContext(ctx): void
-
Returns void
setDisplayName
- setDisplayName(displayName): void
-
Returns void
setPKCE
- setPKCE(enable): void
-
Returns void
setRedirectURL
- setRedirectURL(url): void
-
Returns void
setScopes
- setScopes(scopes): void
-
Returns void
setTokenURL
- setTokenURL(url): void
-
Returns void
setUserInfoURL
- setUserInfoURL(url): void
-
Returns void
tokenURL
- tokenURL(): string
-
Returns string
userInfoURL
- userInfoURL(): string
-
Returns string
Provider defines a common interface for an OAuth2 client.