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

[jsonwebtoken] cannot skip audience validation #866

Open
ayZagen opened this issue Jul 30, 2024 · 2 comments
Open

[jsonwebtoken] cannot skip audience validation #866

ayZagen opened this issue Jul 30, 2024 · 2 comments

Comments

@ayZagen
Copy link

ayZagen commented Jul 30, 2024

How to skip audience and issuer checks?

  const decoded = decodeHeader( jwtString);
  const res = await verify(
    jwtString,
    cert,
    { algorithms: [ decoded.algorithm ], aud: undefined, iss: undefined, sub: undefined }
  );
// Throws { "code": "GenericFailure", "stack": "InvalidAudience" }

not defining or giving an empty array is not working too.

@pasha-vuiko
Copy link
Contributor

the same issue for me

@pasha-vuiko
Copy link
Contributor

Here is the fix
#910

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

No branches or pull requests

2 participants