Skip to content

Commit

Permalink
fix: add sub and identities attributes (aws-amplify#1825)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Nelson committed Jun 28, 2022
1 parent a3455fa commit 18d9fe8
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ class CognitoUserAttributeKey extends UserAttributeKey {
/// Read-only: `false`
static const givenName = CognitoUserAttributeKey._('given_name');

/// Federated identities of the user.
///
/// Read-only: `true`
static const identities =
CognitoUserAttributeKey._('identities', readOnly: true);

/// The user's locale, represented as a BCP47 language tag, e.g. `en-US`.
///
/// Read-only: `false`
Expand Down Expand Up @@ -155,6 +161,11 @@ class CognitoUserAttributeKey extends UserAttributeKey {
/// Read-only: `false`
static const profile = CognitoUserAttributeKey._('profile');

/// The user ID.
///
/// Read-only: `true`
static const sub = CognitoUserAttributeKey._('sub', readOnly: true);

/// The time the user's information was last updated.
///
/// Read-only: `false`
Expand All @@ -179,6 +190,7 @@ class CognitoUserAttributeKey extends UserAttributeKey {
familyName,
gender,
givenName,
identities,
locale,
middleName,
name,
Expand All @@ -188,6 +200,7 @@ class CognitoUserAttributeKey extends UserAttributeKey {
picture,
preferredUsername,
profile,
sub,
updatedAt,
website,
zoneinfo
Expand Down

0 comments on commit 18d9fe8

Please sign in to comment.