adamA
Convex Community2y ago
2 replies
adam

Custom claims in JWTs

I'm using Convex custom auth to connect a AWS Cognito user pool. I've successfully got it working, though I'm unable to access my custom JWT claims in Convex. I'm using custom claims for role based access. The JWT contains claims such as:

{
  "sub": "some-value",
  "cognito:groups": [
    "admin"
  ],
  ...
}


I found in the docs it states "Note that Convex currently only supports passing through a list of fields which are part of the OpenId standard."

My question is, will there be support for custom claims in the future and is there any workaround in the mean time? I would expect having such an ability would open up Convex support for many enterprise companies that are heavily invested in the AWS ecosystem.
Was this page helpful?