Defines the options for initializing an OAuthCredential.
For ID tokens with nonce claim, the raw nonce has to also be provided.
Signature:
export interface OAuthCredentialOptions
Properties
Property | Type | Description |
---|---|---|
accessToken | string | The OAuth access token used to initialize the OAuthCredential. |
idToken | string | The OAuth ID token used to initialize the OAuthCredential. |
rawNonce | string | The raw nonce associated with the ID token. |
OAuthCredentialOptions.accessToken
The OAuth access token used to initialize the OAuthCredential.
Signature:
accessToken?: string;
OAuthCredentialOptions.idToken
The OAuth ID token used to initialize the OAuthCredential.
Signature:
idToken?: string;
OAuthCredentialOptions.rawNonce
The raw nonce associated with the ID token.
It is required when an ID token with a nonce field is provided. The SHA-256 hash of the raw nonce must match the nonce field in the ID token.
Signature:
rawNonce?: string;