Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-Lyard committed Aug 12, 2024
2 parents 23fdfae + 572639d commit ae1c25d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/utils/jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export const signJwt = (payload: Object, options: SignOptions) => {
export const verifyJwt = <T>(token: string): T | null => {
try {
const publicKey = process.env.JWT_ACCESS_TOKEN_PUBLIC_KEY;
console.log('publickey', publicKey);
const decoded = jwt.verify(token, publicKey) as T;
console.log('decoded', decoded);

return decoded;
} catch (error) {
Expand Down

0 comments on commit ae1c25d

Please sign in to comment.