Is your feature request related to a problem? Please describe.
I have to parse the JWT token myself to actually see the groups the user is in.
Describe the solution you'd like
It's be nice if Auth.currentAuthenticatedUser()
returns the cognito:groups
attribute.
I figured it out! Auth.getSession().then(data => data.idToken.payload['cognito:groups'])
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Resolving as per the above comment
Most helpful comment
I figured it out!
Auth.getSession().then(data => data.idToken.payload['cognito:groups'])