Credentials class

Container of a AccessToken and a RefreshToken representing the current MyUser credentials.

Constructors

Credentials(AccessToken access, RefreshToken refresh, SessionId sessionId, UserId userId)
const
Credentials.fromJson(Map data)
Constructs Credentials from the provided data.
factory

Properties

access AccessToken
Created or refreshed AccessToken for authenticating the Session.
final
hashCode int
The hash code for this object.
no setterinherited
refresh RefreshToken
RefreshToken of these Credentials.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId SessionId
ID of the Session these Credentials represent.
final
userId UserId
ID of the currently authenticated MyUser.
final

Methods

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

Operators

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