Skip to content

Commit

Permalink
Update lib.d.ts
Browse files Browse the repository at this point in the history
nit
  • Loading branch information
denys.oblohin committed Feb 21, 2022
1 parent 637322b commit b902da9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions lib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ declare class OktaJwtVerifier {
verifyIdToken(
idTokenString: string,
expectedClientId: string,
expectedNonce: string
expectedNonce?: string
): Promise<OktaJwtVerifier.Jwt>;

private verifyAsPromise(tokenString: string): Promise<OktaJwtVerifier.Jwt>;
Expand Down Expand Up @@ -73,7 +73,7 @@ declare namespace OktaJwtVerifier {
* ```
* Validation fails and an error is returned if the token does not have the configured claim.
*
* Read more: https://github.com/okta/okta-oidc-js/tree/master/packages/jwt-verifier#custom-claims-assertions
* Read more: https://github.com/okta/okta-jwt-verifier-js#custom-claims-assertions
*/
assertClaims?: Record<string, unknown>;
/**
Expand All @@ -82,7 +82,7 @@ declare namespace OktaJwtVerifier {
* By default, found keys are cached by key ID for one hour. This can be
* configured with the cacheMaxAge option for cache entries.
*
* Read more: https://github.com/okta/okta-oidc-js/tree/master/packages/jwt-verifier#caching--rate-limiting
* Read more: https://github.com/okta/okta-jwt-verifier-js#caching--rate-limiting
*/
cacheMaxAge?: number;
/**
Expand All @@ -93,9 +93,18 @@ declare namespace OktaJwtVerifier {
* JWKs requests per minute is enforced. This is configurable with the
* jwksRequestsPerMinute option.
*
* Read more: https://github.com/okta/okta-oidc-js/tree/master/packages/jwt-verifier#caching--rate-limiting
* Read more: https://github.com/okta/okta-jwt-verifier-js#caching--rate-limiting
*/
jwksRequestsPerMinute?: number;
/**
* Custom JWKS URI
*
* It's useful when JWKS URI cannot be based on Issuer URI
* Defaults to `${issuer}/v1/keys`
*
* Read more: https://github.com/okta/okta-jwt-verifier-js#custom-jwks-uri
*/
jwksUri?: string;
}

type Algorithm =
Expand Down

0 comments on commit b902da9

Please sign in to comment.