How to get a cognito users' group (in AWS JS SDK V3)

Viewed 134

I try to migrate from AWS JavbaScript SDK V2 to V3.

I want to retrieve the user groups a logged-in Cognito user (form an identity pool) belongs to.

In V2, this was as easy as looking in the ["accessToken"].payload['cognito:groups'] element of the sign-in response.

In V3 it's not part of the response. How do I get this piece of information in V3?

0 Answers
Related