Skip to content

Commit

Permalink
Merge pull request #234 from kinde-oss/peter/fix-get-id-token
Browse files Browse the repository at this point in the history
fix: get id token (await getSessionItem)
  • Loading branch information
DanielRivers authored Nov 5, 2024
2 parents 64a28e2 + 3e19d41 commit e7166b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/session/getIdToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e7166b1

Please sign in to comment.