Session class

Represents a user session.

A session includes data about the authenticated user, including their DID, handle, email, and the access and refresh JSON Web Tokens (JWT).

Available extensions
Annotations
  • @freezed

Constructors

Session({required String did, required String handle, String? email, @Default(false) bool emailConfirmed, @Default(false) bool emailAuthFactor, required String accessJwt, required String refreshJwt, Map<String, dynamic>? didDoc, @Default(true) bool active, String? status})
const
factory
Session.fromJson(Map<String, Object?> json)
factory

Properties

accessJwt String
Access JSON Web Token.
no setterinherited
active bool
no setterinherited
copyWith → $SessionCopyWith<Session>
no setterinherited
did String
Decentralized Identifier for the user.
no setterinherited
didDoc Map<String, dynamic>?
DID plc document.
no setterinherited
email String?
User's email address.
no setterinherited
emailAuthFactor bool
no setterinherited
emailConfirmed bool
A flag indicating whether the email address is confirmed.
no setterinherited
handle String
User handle.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
refreshJwt String
Refresh JSON Web Token.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String?
no setterinherited

Methods

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

Operators

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