marcusM
Convex Community8mo ago
13 replies
marcus

"Could not decode token" custom JWT auth

While following the custom auth configuration setup, I ran into this issue where the backend could not decode the access token

Here is my auth setup
export default {
  providers: [
    {
      type: 'customJwt',
      applicationID: <same as image shown>,
      issuer: 'privy.io',
      jwks: <correct working jwks endpoint>,
      algorithm: 'ES256'
    }
  ]
}


I have verified that my decoded kid, alg, aud are all correct. I have a suspicision that because the issuer field here is not a HTTPS url, the decoding is not working. Would appreciate some support here
Screenshot_2025-05-28_at_14.22.30.png
Was this page helpful?