Session class
Represents a user-authenticated session with Nhost.
Constructors
Properties
- accessToken → String?
-
The raw JSON web token
final
- accessTokenExpiresIn → Duration?
-
The amount of time that accessToken will remain valid.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- refreshToken → String?
-
A token that can be used to periodically refresh the session.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- user → User?
-
The user associated with this session.
final
Methods
-
copyWith(
{String? accessToken, Duration? accessTokenExpiresIn, String? refreshToken, User? user}) → Session -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited