OAuthCredentialOptions interface
Stay organized with collections
Save and categorize content based on your preferences.
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
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;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-22 UTC.
[null,null,["Last updated 2022-07-22 UTC."],[],[],null,["Defines the options for initializing an [OAuthCredential](./auth.oauthcredential.md#oauthcredential_class).\n\nFor ID tokens with nonce claim, the raw nonce has to also be provided.\n\n**Signature:** \n\n export interface OAuthCredentialOptions \n\nProperties\n\nOAuthCredentialOptions.accessToken\n\nThe OAuth access token used to initialize the [OAuthCredential](./auth.oauthcredential.md#oauthcredential_class).\n\n**Signature:** \n\n accessToken?: string;\n\nOAuthCredentialOptions.idToken\n\nThe OAuth ID token used to initialize the [OAuthCredential](./auth.oauthcredential.md#oauthcredential_class).\n\n**Signature:** \n\n idToken?: string;\n\nOAuthCredentialOptions.rawNonce\n\nThe raw nonce associated with the ID token.\n\nIt 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.\n\n**Signature:** \n\n rawNonce?: string;"]]