getWalletAuthChallenge method

  1. @override
Future<CrossmintCredentialWalletAuthChallenge> getWalletAuthChallenge(
  1. String address
)
override

Implementation

@override
Future<CrossmintCredentialWalletAuthChallenge> getWalletAuthChallenge(
  String address,
) async {
  final CrossmintJsonMap response = await _service.getWalletAuthChallenge(
    address,
  );
  return CrossmintCredentialWalletAuthChallenge(
    nonce: readRequiredString(
      response,
      const <String>['nonce'],
      entityName: 'credential wallet auth challenge',
      exceptionFactory: CrossmintCredentialsException.new,
    ),
    raw: response,
  );
}