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
Private
cleanupClean up expired OAuth data from storage
Complete OAuth flow
Optional
state: stringEmits an event with arguments
Optional
data: unknownPrivate
exchangeExchange authorization code for access token
Optional
state: stringPrivate
fetchFetch user info from provider
Generate credentials from OAuth user info Ora restituisce anche la chiave GunDB derivata (key)
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)
Check if OAuth is supported
Private
normalizeNormalize user info from 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
Private
validateValidates security configuration
OAuth Connector