Merged PR 261: B2C_1_PORC_stgが発行したIDトークンで認証が可能になるよう修正を行う

## 概要
[Task2271: B2C_1_PORC_stgが発行したIDトークンで認証が可能になるよう修正を行う](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/2271)

- 型チェックからnonceを削除
- nonceを省略可能に型を修正

## レビューポイント
- 修正内容は問題ないか

## 動作確認状況
- テスト通過、型チェック通過
This commit is contained in:
湯本 開 2023-07-24 05:50:38 +00:00
parent c6f63c962c
commit 63109d9857
2 changed files with 1 additions and 2 deletions

View File

@ -10,7 +10,6 @@ export const isIDToken = (
if (token.emails === undefined) return false;
if (token.exp === undefined) return false;
if (token.iat === undefined) return false;
if (token.nonce === undefined) return false;
return true;
};

View File

@ -30,7 +30,7 @@ export type AccessToken = {
export type IDToken = {
emails: string[];
nonce: string;
nonce?: string | undefined;
sub: string; // AzureAD B2C ID
exp: number; // 有効期限
iat: number; // 発行日時