Credentials class

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

Annotations

Constructors

Credentials(AccessToken access, RefreshToken refresh, Session session, UserId userId)
const
Credentials.fromJson(Map<String, dynamic> json)
Constructs Credentials from the provided json.
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
session → Session
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