Skip to content

Commit fb7bde4

Browse files
committed
fix: add sub and identities attributes (#1825)
1 parent 97b1603 commit fb7bde4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/amplify_core/lib/src/types/auth/attribute/cognito_user_attribute_key.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ class CognitoUserAttributeKey extends UserAttributeKey {
102102
/// Read-only: `false`
103103
static const givenName = CognitoUserAttributeKey._('given_name');
104104

105+
/// Federated identities of the user.
106+
///
107+
/// Read-only: `true`
108+
static const identities =
109+
CognitoUserAttributeKey._('identities', readOnly: true);
110+
105111
/// The user's locale, represented as a BCP47 language tag, e.g. `en-US`.
106112
///
107113
/// Read-only: `false`
@@ -155,6 +161,11 @@ class CognitoUserAttributeKey extends UserAttributeKey {
155161
/// Read-only: `false`
156162
static const profile = CognitoUserAttributeKey._('profile');
157163

164+
/// The user ID.
165+
///
166+
/// Read-only: `true`
167+
static const sub = CognitoUserAttributeKey._('sub', readOnly: true);
168+
158169
/// The time the user's information was last updated.
159170
///
160171
/// Read-only: `false`
@@ -179,6 +190,7 @@ class CognitoUserAttributeKey extends UserAttributeKey {
179190
familyName,
180191
gender,
181192
givenName,
193+
identities,
182194
locale,
183195
middleName,
184196
name,
@@ -188,6 +200,7 @@ class CognitoUserAttributeKey extends UserAttributeKey {
188200
picture,
189201
preferredUsername,
190202
profile,
203+
sub,
191204
updatedAt,
192205
website,
193206
zoneinfo

0 commit comments

Comments
 (0)