conradkohC
Convex Community9mo ago
4 replies
conradkoh

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');

should be this instead:
const keys = await generateKeyPair('RS256', { extractable: true });


otherwise the user will get CryptoKey is not extractable
Authentication library for your Convex backend
Was this page helpful?