Auth don't work with Next js and ConvexAuthNextjsProvider
In the middleware.ts it seems to be working as expected (isAuthenticated is true).
But when i do
await fetchAction(api.stripe.checkout, { plan: 'starter' }) and export const checkout = action({
args: { plan: v.string() },
handler: async ({ auth }, { plan }) => {
console.log('server identity', await auth.getUserIdentity())
},
})
It just return
null (on a clickhandler insiden react)..I have gone trought the debugging section in the docs (https://docs.convex.dev/auth/debug)
Everything looks good, except that in the header, i don't get
typ: "JWT", only "alg": "RS256"Can you point me in the right direction?




