verifyMessage method
Implementation
@override
Future<bool> verifyMessage({
required String message,
required String signature,
Cacao? cacao,
String? clientId,
}) async {
if (!enabled) throw Exception('siweConfig not enabled');
//
final verifyArgs = SIWEVerifyMessageArgs(
message: message,
signature: signature,
cacao: cacao,
clientId: clientId,
);
final isValid = await _siweConfig!.verifyMessage(verifyArgs);
if (!isValid) {
throw W3MServiceException('Error verifying SIWE signature');
}
return true;
}