Token constructor

const Token({
  1. required String accessToken,
  2. String? refreshToken,
  3. DateTime? expiresAt,
  4. List<String> scopes = const [],
  5. Map<String, dynamic> metadata = const {},
  6. String? subject,
  7. String? issuer,
  8. DateTime? issuedAt,
})

Creates an immutable Token.

Implementation

const Token({
  required this.accessToken,
  this.refreshToken,
  this.expiresAt,
  this.scopes = const [],
  this.metadata = const {},
  this.subject,
  this.issuer,
  this.issuedAt,
});