Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
denys.oblohin committed Feb 21, 2022
1 parent b902da9 commit 44b7fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/types/lib.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ const main = async () => {
// verifyIdToken
// Expected error: Missing expectedClientId
expectError(verifier.verifyIdToken('idTokenString'));
// Expected error: Missing expectedNonce
expectError(verifier.verifyIdToken('idTokenString', 'expectedClientId'));
// expectedNonce is optional
expectType<OktaJwtVerifier.Jwt>(await verifier.verifyIdToken('idTokenString', 'expectedClientId'));
// Expected error: Invalid type for expectedClientId
expectError(verifier.verifyIdToken('idTokenString', ['expectedClientId'], 'expectedNonce'));
expectType<OktaJwtVerifier.Jwt>(await verifier.verifyIdToken('idTokenString', 'expectedClientId', 'expectedNonce'));
Expand Down

0 comments on commit 44b7fa2

Please sign in to comment.