xTazyX
Convex Community3mo ago
1 reply
xTazy

If you are using jwt plugin - u have to set keyPairConfig for jwks (0.10)

🔑Auth
jwt({
jwks: {
keyPairConfig: {
alg: "RS256",
},
},
jwt: { expirationTime: '24h', disableSettingJwtHeader: true },
}),

I believe u have to add it to the docs.

expirationTime is not working for a long time, its always 15m https://github.com/get-convex/better-auth/issues/146
GitHub
export const createAuth = ( ctx: GenericCtx<DataModel>, {optionsOnly} = {optionsOnly: false}, ) => { return betterAuth({ // disable logging when createAuth is called just to generate optio...
JWT plugin expirationTime not working · Issue #146 · get-convex/b...
Was this page helpful?