From 2fbc493451585c37a3b0d4fcc551b3f5c6cbf619 Mon Sep 17 00:00:00 2001 From: Arnaud Lyard Date: Mon, 12 Aug 2024 14:18:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20log=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/utils/jwt.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/utils/jwt.ts b/server/src/utils/jwt.ts index 6ff8301..3ee6873 100644 --- a/server/src/utils/jwt.ts +++ b/server/src/utils/jwt.ts @@ -12,7 +12,9 @@ export const signJwt = (payload: Object, options: SignOptions) => { export const verifyJwt = (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) {