conradkoh
conradkoh5w ago

Error in docs for convex auth setup script

There is an minor error in the example provided in the docs here: https://labs.convex.dev/auth/setup/manual The line
const keys = await generateKeyPair('RS256');
const keys = await generateKeyPair('RS256');
should be this instead:
const keys = await generateKeyPair('RS256', { extractable: true });
const keys = await generateKeyPair('RS256', { extractable: true });
otherwise the user will get CryptoKey is not extractable
Manual Setup - Convex Auth
Authentication library for your Convex backend
3 Replies
Convex Bot
Convex Bot5w 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!
Nicolas
Nicolas5w ago
Thanks for the report! It looks like to me that this is a breaking change introduced by Jose 6. I’ll confirm that the change is necessary and update the docs It looks like our docs aren’t asking developers to install Jose, as @bastianwegge pointed out in https://discord.com/channels/1019350475847499849/1349429081153732668/1349429081153732668). I think they might have been written under the assumption that you would get an indirect dependency on Jose 5 from installing @convex-dev/auth but I agree this isn’t ideal (and breaks if you’re using Jose 6). I’ll try to figure out what we should do here
erquhart
erquhart4w ago
Merged a docs update that addresses this for manual install: https://github.com/get-convex/convex-auth/pull/191

Did you find this page helpful?