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

Allow array of strings for issuer option #44

Open
manyike opened this issue Jul 8, 2022 · 0 comments
Open

Allow array of strings for issuer option #44

manyike opened this issue Jul 8, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@manyike
Copy link

manyike commented Jul 8, 2022

Describe the Feature

When verifying tokens the JWT library which is used in this project support issuer as a string or an array of strings. To align this project with that I suggest allowing issuer as a string or an array of strings. This functionality comes in handy in cases where we setup azure b2c custom domains in this scenario both the default azure domain and the custom domain should be regarded as valid issuers.

Suggested Solution

After taking a look at the code it looks like the change should be simple enough and I'm happy to push a pull request. Essentially we just need to change VerifyOptions interface to look like below.

export interface VerifyOptions {
  ...

  issuer: string | string[];

  ...
}

Other Information

n/a

@justinlettau justinlettau added the enhancement New feature or request label Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants