Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClaimsToAddOrOverride interface for CognitoEventUserPoolsPreTokenGenV2 seems to be incorrect #585

Open
p-mercury opened this issue Feb 13, 2025 · 0 comments

Comments

@p-mercury
Copy link

Is your feature request related to a problem? Please describe.
I am creating a pre token generation trigger that needs to add a list of roles to the token claims, but with the current ClaimsToAddOrOverride interface of the CognitoEventUserPoolsPreTokenGenV2 event, only allows string values are allowed to be added to the claims. As far as I can tell from the Docs, you are able to add nested maps and lists of strings to toke claims.

Describe the solution you'd like
Update the interface to allow nested maps and arrays of strings in the token claims as it is permitted by the Docs for the ClaimsToAddOrOverride.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant