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•15d ago
I am checking into this. Not been able to reproduce yet, is this happening every time?
WiESA•11d 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?1KMembers
View on DiscordWant results from more Discord servers?
More PostsKindeServerSession values are null when using Stripe webhookHi, I am using NextJS and want to integrate with the Stripe API. I need to use the Stripe's webhook not getting verification emailsour clients are saying they dont get verification emails, it used to work perfectly yesterday. are tSMTP Server TimeoutHi. I when I try sending a test email using SMTP settings.. it times out. I'm using Resend and confHow to setup SSO only for one organization?i am building multy tenancy app and what to know if it is possible to setup SSO only for one oraganiNextjs SDK redirects me to /api/auth/login which does not existAs the title says, the `<LoginLink>` from nextjs sdk redirects me to `http://localhost:3000/api/authExpress Protected Routes: How to pass JWT from client?Hi,
I have an express API which is using the `protectRoute` and `getUser` middlewares in each routeAfter calling createOrg({ org_name: 'name' }) a call to /token that returns 500I am manually calling createOrg as part of the onboarding flow in my react app and I have noticed thCustom properties added to the wrong tokenI added custom properties to the id token, but I see them added to the access token instead of the i