KirakSession class
A signed-in session. expiresAt is ms since epoch, computed client-side
when the tokens are adopted. user is null when the server response
carried none and the follow-up /auth/me lookup failed.
Constructors
- KirakSession({required String accessToken, required String refreshToken, required int expiresIn, required int expiresAt, required KirakUser? user})
-
const
-
KirakSession.fromJson(Map<
String, Object?> json) -
factory
Properties
- accessToken → String
-
final
- expiresAt → int
-
final
- expiresIn → int
-
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 → KirakUser?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited