feat: add cognito:groups field

This commit is contained in:
alphafetus committed 2026-04-01 13:50:49 -04:00
1 parent 152c01124b
commit 17e339ea00
1 file changed
+3
+3
View File
@@ -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>,
} }