getSession method
Implementation
@override
Future<SIWESession> getSession() async {
if (!enabled) throw Exception('siweConfig not enabled');
//
try {
final siweSession = await _siweConfig!.getSession();
if (siweSession == null) {
throw W3MServiceException('Error getting SIWE session');
}
_siweConfig!.onSignIn?.call(siweSession);
return siweSession;
} catch (e) {
rethrow;
}
}