From 17e339ea00237648c53d9fe59e134576941ce0d1 Mon Sep 17 00:00:00 2001 From: Lucas Vas Date: Wed, 1 Apr 2026 13:50:49 -0400 Subject: [PATCH] feat: add cognito:groups field --- src/common/user.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/user.rs b/src/common/user.rs index 496037a..525572c 100644 --- a/src/common/user.rs +++ b/src/common/user.rs @@ -24,4 +24,7 @@ pub struct UserClaims { pub username: String, /// The intended use for the token. 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, }