Session class

Session

Implemented types

Constructors

Session({required String $id, required String $createdAt, required String $updatedAt, required String userId, required String expire, required String provider, required String providerUid, required String providerAccessToken, required String providerAccessTokenExpiry, required String providerRefreshToken, required String ip, required String osCode, required String osName, required String osVersion, required String clientType, required String clientCode, required String clientName, required String clientVersion, required String clientEngine, required String clientEngineVersion, required String deviceName, required String deviceBrand, required String deviceModel, required String countryCode, required String countryName, required bool current, required List factors, required String secret, required String mfaUpdatedAt})
Session.fromMap(Map<String, dynamic> map)
factory

Properties

$createdAt String
Session creation date in ISO 8601 format.
final
$id String
Session ID.
final
$updatedAt String
Session update date in ISO 8601 format.
final
clientCode String
Client code name. View list of available options.
final
clientEngine String
Client engine name.
final
clientEngineVersion String
Client engine name.
final
clientName String
Client name.
final
clientType String
Client type.
final
clientVersion String
Client version.
final
countryCode String
Country two-character ISO 3166-1 alpha code.
final
countryName String
Country name.
final
current bool
Returns true if this the current user session.
final
deviceBrand String
Device brand name.
final
deviceModel String
Device model name.
final
deviceName String
Device name.
final
expire String
Session expiration date in ISO 8601 format.
final
factors List
Returns a list of active session factors.
final
hashCode int
The hash code for this object.
no setterinherited
ip String
IP in use when the session was created.
final
mfaUpdatedAt String
Most recent date in ISO 8601 format when the session successfully passed MFA challenge.
final
osCode String
Operating system code name. View list of available options.
final
osName String
Operating system name.
final
osVersion String
Operating system version.
final
provider String
Session Provider.
final
providerAccessToken String
Session Provider Access Token.
final
providerAccessTokenExpiry String
The date of when the access token expires in ISO 8601 format.
final
providerRefreshToken String
Session Provider Refresh Token.
final
providerUid String
Session Provider User ID.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secret String
Secret used to authenticate the user. Only included if the request was made with an API key
final
userId String
User ID.
final

Methods

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

Operators

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