signJWT method

  1. @override
Future<String> signJWT(
  1. String aud
)
override

Implementation

@override
Future<String> signJWT(aud) async {
  _isInitialized();
  final seed = await _getClientSeed();
  final keyPair = await relay_auth.generateKeyPair(seed);
  final sub = utils.generateRandomBytes32();
  final ttl = CRYPTO_JWT_TTL;
  final jwt = await relay_auth.signJWT(
    sub: sub,
    aud: aud,
    ttl: ttl,
    keyPair: keyPair,
  );
  return jwt;
}