K
KindeWiESA

Token expired issues

Hi, I'm using Kinde with Next.js It seems like the token is note refreshed automatically when it has expired. Is this something known? GET /api/auth/setup 401 in 32ms JWTExpired: "exp" claim timestamp check failed at __TURBOPACK__default__export__ (/Users/name/Projects/portal/.next/server/chunks/78c55_jose_dist_node_esm_b216a8._.js:3302:19) at jwtVerify (/Users/name/Projects/portal/.next/server/chunks/78c55_jose_dist_node_esm_b216a8._.js:3337:267) { code: 'ERR_JWT_EXPIRED', claim: 'exp', reason: 'check_failed' }
Daniel_Kinde
Daniel_Kinde15d ago
I am checking into this. Not been able to reproduce yet, is this happening every time?
WiESA
WiESA11d ago
Yes for now everytime while developing locally. I'm doing this check in a Layout component, and when the token is expired it's still giving me isAuthenticated = true const { isAuthenticated } = getKindeServerSession(); if (!(await isAuthenticated())) { redirect("/api/auth/login"); } Hi, can I give any more information to help you find the issue?