cognito-local icon indicating copy to clipboard operation
cognito-local copied to clipboard

Add given_name and family_name attributes to id token

Open alec-w opened this issue 2 years ago • 3 comments

Fixes #360

Adds the given_name and family_name attributes into the id token.

In our project making use of cognito-local (thanks for this) this addressed the problem for us.

Guidance would be helpful on whether this is indeed the correct fix and how the tests should be modified to prevent a future regression on these attributes (typescript not being my forte).

alec-w avatar Jan 04 '23 10:01 alec-w

I think this looks fine. Ideally, we'd have a canonical list of attributes which are supposed to be exposed via the tokens and then we could write tests which verify they're exposed (if they're set on the user), but unless someone volunteers to do that I'm happy to just merge.

jagregory avatar May 28 '23 06:05 jagregory