Skip to content

Commit

Permalink
removed Bearer prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
cultpodcasts committed May 1, 2024
1 parent d91eb16 commit 20137d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default {
const issuer = 'https://dev-q3x2z6aofdzbjkkf.us.auth0.com/';
const audience = 'https://api.cultpodcasts.com/';

const result = await parseJwt(jwt, issuer, audience);
const result = await parseJwt(jwt.slice(7), issuer, audience);
if (!result.valid) {
console.log(result.reason); // Invalid issuer/audience, expired, etc
} else {
Expand Down

0 comments on commit 20137d1

Please sign in to comment.