UserProfile class

A collection of properties that represents the authenticated user, extracted from ID token claims.

Constructors

UserProfile({required String sub, String? name, String? givenName, String? familyName, String? middleName, String? nickname, String? preferredUsername, Uri? profileUrl, Uri? pictureUrl, Uri? websiteUrl, String? email, bool? isEmailVerified, String? gender, String? birthdate, String? zoneinfo, String? locale, String? phoneNumber, bool? isPhoneNumberVerified, Map<String, String>? address, DateTime? updatedAt, Map<String, dynamic>? customClaims, UserActor? actor})
const
UserProfile.fromMap(Map<String, dynamic> result)
factory

Properties

actor → UserActor?
The actor (act) claim from the ID token, representing the acting party in a Custom Token Exchange delegation or impersonation flow (for example, an AI agent acting on behalf of a user).
final
address → Map<String, String>?
The address of the user.
final
birthdate → String?
The birthdate of the user.
final
customClaims → Map<String, dynamic>?
Any custom claims
final
email → String?
The email of the user.
final
familyName → String?
The last name of the user.
final
gender → String?
The gender of the user.
final
givenName → String?
The first name of the user.
final
hashCode → int
The hash code for this object.
no setterinherited
isEmailVerified → bool?
If the user's email is verified.
final
isPhoneNumberVerified → bool?
If the user's phone number is verified.
final
locale → String?
The locale of the user.
final
middleName → String?
The middle name of the user.
final
name → String?
The name of the user.
final
nickname → String?
The nickname of the user.
final
phoneNumber → String?
The phone number of the user.
final
pictureUrl → Uri?
The URL of the user's picture.
final
preferredUsername → String?
The preferred username of the user.
final
profileUrl → Uri?
The URL of the user's profile page.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sub → String
The Auth0 user identifier.
final
updatedAt → DateTime?
The date and time the user's information was last updated.
final
websiteUrl → Uri?
The URL of the user's website.
final
zoneinfo → String?
The time zone of the user.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited