Session constructor

  1. @jsonSerializable
const Session({
  1. required String did,
  2. required String handle,
  3. String? email,
  4. @Default(false) bool emailConfirmed,
  5. @Default(false) bool emailAuthFactor,
  6. required String accessJwt,
  7. required String refreshJwt,
  8. Map<String, dynamic>? didDoc,
  9. @Default(true) bool active,
  10. String? status,
})

Implementation

@jsonSerializable
const factory Session({
  /// Decentralized Identifier for the user.
  required String did,

  /// User handle.
  required String handle,

  /// User's email address.
  String? email,

  /// A flag indicating whether the email address is confirmed.
  @Default(false) bool emailConfirmed,
  @Default(false) bool emailAuthFactor,

  /// Access JSON Web Token.
  required String accessJwt,

  /// Refresh JSON Web Token.
  required String refreshJwt,

  /// DID plc document.
  Map<String, dynamic>? didDoc,
  @Default(true) bool active,
  String? status,
}) = _Session;