Custom jwt in convex
Hi,
I'm trying to implement a custom jwt provider for my convex, however, I'm gettign an error that I'm not able to debug.
Could you please help me understand where is the issue?
my auth.config.ts
export default {
providers: [
{
type: "customJwt",
applicationID: process.env.JWT_AUDIENCE,
issuer: process.env.CONVEX_SITE_URL,
jwks:
${process.env.CONVEX_SITE_URL}/.well-known/jwks.json,
algorithm: "RS256",
}
]
};
Here is the error:
[
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"appAuth",
0,
"domain"
],
"message": "Required"
}
]
The domain is not required when using customJwt. So I don't understand what's the problem here.3 Replies
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!
are you on the latest convex? If that doesn't work, you could also try installing
npm i convex@alpha
which may have some recent (but maybe unstable) improvements Tom has been makingHi Ian,
I was using convex@1.19.5, upgrading to the latest version has indeed helped solve the issue.
Thank you for your prompt help.