feat: add cognito:groups field
This commit is contained in:
1 parent
152c01124b
commit
17e339ea00
1 file changed
+3
@@ -24,4 +24,7 @@ pub struct UserClaims {
|
|||||||
pub username: String,
|
pub username: String,
|
||||||
/// The intended use for the token.
|
/// The intended use for the token.
|
||||||
pub token_use: String,
|
pub token_use: String,
|
||||||
|
/// The list of the names of user pool groups that have this user as a member.
|
||||||
|
#[serde(rename = "cognito:groups")]
|
||||||
|
pub groups: Vec<String>,
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user