signOut method

  1. @override
Future<void> signOut()
override

Implementation

@override
Future<void> signOut() async {
  if (!enabled) throw Exception('siweConfig not enabled');

  _appKit.core.logger.d('[$runtimeType] signOut() called');
  final success = await _siweConfig!.signOut();
  if (!success) {
    throw ReownAppKitModalException('signOut() from siweConfig failed');
  }
  _siweConfig.onSignOut?.call();
}