OAuthCredentialを初期化するためのオプションを定義します。
nonce クレームを持つ ID トークンの場合は、生の nonce も提供する必要があります。
サイン:
export interface OAuthCredentialOptions
プロパティ
財産 | タイプ | 説明 |
---|---|---|
アクセストークン | 弦 | OAuthCredentialの初期化に使用される OAuth アクセス トークン。 |
idトークン | 弦 | OAuthCredentialの初期化に使用される OAuth ID トークン。 |
rawノンス | 弦 | ID トークンに関連付けられた生の nonce。 |
OAuthCredentialOptions.accessToken
OAuthCredentialの初期化に使用される OAuth アクセス トークン。
サイン:
accessToken?: string;
OAuthCredentialOptions.idToken
OAuthCredentialの初期化に使用される OAuth ID トークン。
サイン:
idToken?: string;
OAuthCredentialOptions.rawNonce
ID トークンに関連付けられた生の nonce。
nonce フィールドを持つ ID トークンが提供される場合に必要です。生の nonce の SHA-256 ハッシュは、ID トークンの nonce フィールドと一致する必要があります。
サイン:
rawNonce?: string;