Testbed
Testbed2d ago

WorkOS token refresh breaks Convex

Hi, I've got a NextJS app where when the token from WorkOS effectively is refreshed, the Convex connection stops working until I do a refresh of the page. If I browse between items on my navbar, it doesnt work, and convex simply says 'Convex auth - getUserIdentity returned: null and 'No identity found - user not authenticated' Is this a known issue and does anything have any immediate gotchas that I should look at? Below is my auth.config.ts: const clientId = "client_XXXXXX"; const authConfig = { providers: [ { type: 'customJwt', issuer: https://api.workos.com/, algorithm: 'RS256', applicationID: clientId, jwks: https://api.workos.com/sso/jwks/${clientId}, }, { type: 'customJwt', issuer: https://api.workos.com/user_management/${clientId}, algorithm: 'RS256', jwks: https://api.workos.com/sso/jwks/${clientId}, applicationID: clientId, }, ], }; export default authConfig;
1 Reply
Convex Bot
Convex Bot2d ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!

Did you find this page helpful?