From 3e19d41fc8c0a44e85a037ba8d5506feba36c1dc Mon Sep 17 00:00:00 2001 From: Peter Phanouvong Date: Tue, 5 Nov 2024 13:50:52 +1100 Subject: [PATCH] fix: get id token (await getSessionItem) --- src/session/getIdToken.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session/getIdToken.js b/src/session/getIdToken.js index 539405f..72c15cd 100644 --- a/src/session/getIdToken.js +++ b/src/session/getIdToken.js @@ -18,7 +18,7 @@ import {jwtDecoder} from '@kinde/jwt-decoder'; export const getIdTokenFactory = (req, res) => async () => { try { return jwtDecoder( - await sessionManager(req, res).getSessionItem('id_token') + await (await sessionManager(req, res)).getSessionItem('id_token') ); } catch (err) { if (config.isDebugMode) {