AuthSession<TUser> class
A logged-in user and the tokens the backend gave for them.
Constructors
- AuthSession({required String accessToken, required TUser user, String? refreshToken, DateTime? expiresAt})
-
const
Properties
- accessToken → String
-
final
- expiresAt → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- refreshToken → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- user → TUser
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Tokens are left out so a session never ends up in a log.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited