Session constructor
const
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,
})
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;