JwtHeader constructor

JwtHeader({
  1. JwtSupportedAlgorithm? alg = JwtSupportedAlgorithm.eddsa,
  2. String? algName,
  3. String typ = 'JWT',
  4. String? kid,
  5. String? cty,
  6. Map<String, dynamic>? customClaims,
})

Implementation

JwtHeader({
  this.alg = JwtSupportedAlgorithm.eddsa,
  String? algName,
  this.typ = 'JWT',
  this.kid,
  this.cty,
  Map<String, dynamic>? customClaims,
}) : algName = algName ?? alg?.name,
     customClaims = customClaims?.immutable;