OneIdUserInfo class

Claims returned by the OIDC userinfo endpoint.

Only subject is guaranteed by the spec; everything else depends on the scopes granted. Unrecognized/custom claims are preserved in claims so callers aren't blocked waiting on this class to add a getter.

Annotations

Constructors

OneIdUserInfo({required String subject, required Map<String, dynamic> claims})
const
OneIdUserInfo.fromJson(Map<String, dynamic> json)
factory

Properties

claims → Map<String, dynamic>
The full claim set as returned by the server.
final
email → String?
no setter
emailVerified → bool?
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String?
no setter
phoneNumber → String?
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subject → String
The sub claim — a stable, unique identifier for the authenticated subject. Use this (not email) as the account key.
final

Methods

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

Operators

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