Convex Auth error with Nextjs 15
Unhandled Runtime Error
[ Server ] Error: {"code":"InvalidAuthHeader","message":"Could not parse as id token"}
async Layout
./src/app/%5Blocale%5D/(dashboard)/layout.tsx
Made a couple of changes, but still the error persists-
1. Added await in the layout file- token: await convexAuthNextjsToken(), similarly in middleware file- https://github.com/get-convex/v1/blob/main/apps/app/src/app/%5Blocale%5D/(dashboard)/layout.tsx
2. Added a new isAuthenticated endpoint to the list of exported Convex functions, like
export const { auth, signIn, signOut, store, isAuthenticated } = convexAuth(... as described here https://github.com/get-convex/convex-auth/blob/main/CHANGELOG.md
What else can be done?
