1 Answer
- Newest
- Most votes
- Most comments
1
I believe at this time Cognito only supports JWTs and does not support opaque tokens. One possibility to explore would be customizing the access token to add an opaque value to a customer defined claim, but I have not attempted this.
Hope this helps!
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 3 years ago

Thanks for the insightful answer. We will check that. But, looking at the documentation here, I believe, it is straight forward to add new claims and tweak few default claims, but don't think it can completely change the token to a opaque format that's not readable for client applications. Most of the leading CIAM providers do support returning opaque access token, so was just curious. Thanks for your answer.
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html#user-pool-lambda-pre-token-generation-excluded-claims