Skip to content

Commit

Permalink
chore: send id token
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhong committed Oct 15, 2021
1 parent beda460 commit fcaf1f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,12 @@ class Client {

const isTokenSet = idToken instanceof TokenSet;



if (isTokenSet) {
assert(idToken.id_token, 'id_token not present in TokenSet');
if (!idToken.id_token) {
throw { idToken, message: 'id_token not present in TokenSet' };
}
idToken = idToken.id_token;
}

Expand Down

0 comments on commit fcaf1f6

Please sign in to comment.