AdminUser class final
A user account as an administrator sees it: what FirebaseAuthAdmin.getUser returns.
It holds no password hash and no token. toString shows the uid only.
- Annotations
-
- @immutable
Constructors
-
AdminUser({required String uid, String? email, bool emailVerified = false, String? displayName, String? photoUrl, String? phoneNumber, bool disabled = false, Map<
String, Object?> customClaims = const <String, Object?>{}, DateTime? tokensValidAfter, DateTime? createdAt, DateTime? lastSignInAt, List<String> providerIds = const <String>[], String? tenantId}) -
Creates a record. The package creates them; you need this only for tests.
const
-
AdminUser.fromJson(Map<
String, Object?> json) -
Reads a user of an
accounts:lookupanswer of the Identity Toolkit API.factory
Properties
- createdAt → DateTime?
-
When the account was created.
final
-
customClaims
→ Map<
String, Object?> -
The custom claims set with
setCustomUserClaims; empty when there are none.final - disabled → bool
-
Whether the account is disabled.
final
- displayName → String?
-
The display name, or null.
final
- email → String?
-
The email address, or null.
final
- emailVerified → bool
-
Whether the email address is verified.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastSignInAt → DateTime?
-
When the user last signed in.
final
- phoneNumber → String?
-
The phone number in E.164 format, or null.
final
- photoUrl → String?
-
The photo URL, or null.
final
-
providerIds
→ List<
String> -
The sign-in providers linked to the account (
password,phone,google.com, ...). A user created with a custom token only has none.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tenantId → String?
-
The tenant of the user, or null.
final
- tokensValidAfter → DateTime?
-
ID tokens issued (signed in) before this time are revoked: set by
revokeRefreshTokens. Second precision.final - uid → String
-
The user's id.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited