Skip to content

Commit

Permalink
chore: prod jwt debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgriffing committed Oct 26, 2024
1 parent 307d7a4 commit f15587e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion playgrounds/app/src/lib/jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ import jwt from 'jsonwebtoken'

const TOKEN_SIGNING_KEY = process.env.TOKEN_SIGNING_KEY!

console.log('Has quotes', TOKEN_SIGNING_KEY.matchAll(/"/g))

export function decodeToken(token: string) {
return jwt.verify(token, TOKEN_SIGNING_KEY, { algorithms: ['RS512'] })
return jwt.verify(token, TOKEN_SIGNING_KEY, {
algorithms: ['RS512'],
})
}

function encodeToken(
Expand Down

0 comments on commit f15587e

Please sign in to comment.