Private
configPrivate
Readonly
DEFAULT_Private
Readonly
memoryPrivate
Readonly
userPrivate
base64urlEncodes a buffer into a Base64URL-encoded string.
The buffer to encode.
The Base64URL-encoded string.
Private
cachePrivate
calculatePKCECodeCalculate the PKCE code challenge from a code verifier. Hashes the verifier using SHA-256 and then base64url encodes it.
The code verifier string.
The base64url-encoded SHA-256 hash of the verifier.
Cleanup resources
Complete OAuth flow
Optional
state: stringEmits an event with arguments
Optional
data: unknownPrivate
exchangeExchange authorization code for access token
Optional
state: stringPrivate
fetchGet user info from OAuth provider
Generate credentials from OAuth user info
Private
generateGenerate deterministic password
Private
generatePKCEChallengeGenerate PKCE challenge for secure OAuth flow
Private
generateGenerate cryptographically secure random string
Get available OAuth providers
Private
getPrivate
getGet origin URL (browser or Node.js compatible)
Initiate OAuth flow with a provider
Check if OAuth is supported
Private
normalizeNormalize user info across different providers
Removes an event listener
Registers an event listener
Registers a one-time event listener
Removes all listeners for an event or all events
Optional
event: EventTypePrivate
removePrivate
setStorage abstraction (browser sessionStorage or Node.js Map)
Update the connector configuration
New configuration options
OAuth Connector