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,
);
_appKit.core.logger.d('[$runtimeType] verifyMessage() called');
final isValid = await _siweConfig!.verifyMessage(verifyArgs);
if (!isValid) {
throw ReownAppKitModalException('Error verifying SIWE signature');
}
return true;
}