registeredJwt static method

String registeredJwt(
  1. ResourceKey key, {
  2. Map<String, Object?> extra = const <String, Object?>{},
})

A JWT carrying the exact <platform>_<service> = "true" registration claim for key, plus any extra claims.

Implementation

static String registeredJwt(
  ResourceKey key, {
  Map<String, Object?> extra = const <String, Object?>{},
}) => jwt(<String, Object?>{
  Claims.registrationKey(platform: key.platform, service: key.service):
      'true',
  ...extra,
});