Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add getKeysInterceptor option #48

Merged
merged 5 commits into from
Jun 13, 2024
Merged

Conversation

jaredperreault-okta
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Adding Tests
  • Build related changes
  • CI related changes
  • Documentation changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Reviewers

* This option is passed to the `JwksClient` constructor. Useful when wanting to load key sets from a file, env variable or external cache
* Read more: https://github.com/auth0/node-jwks-rsa/blob/master/EXAMPLES.md#loading-keys-from-local-file-environment-variable-or-other-externals
*/
getKeysInterceptor?(): Promise<JSONWebKey>;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?(): haven't seen that before. interesting

new OktaJwtVerifier({
issuer: 'https://foo',
clientId: '123456',
getKeysInterceptor: () => []

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this throw or result in a type error on the return?

@oktapp-aperture-okta oktapp-aperture-okta bot merged commit c618c0f into dev4 Jun 13, 2024
1 check passed
@oktapp-aperture-okta oktapp-aperture-okta bot deleted the jp-OKTA-732102 branch June 13, 2024 20:04
oktapp-aperture-okta bot pushed a commit that referenced this pull request Jun 24, 2024
OKTA-742085 version 4

breaking: removes `jwt.setXYZ` methods from .verify methods (#47)
feat: add `getKeysInterceptor` option (#48)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants