We get this error when signing out a user.
It was working before and we haven’t changed anything. This is on the cyan network on production. @shahbaz
Here is our sign out code. Users cannot sign out.
Future<void> signOut() async {
try {
// Clear private key
SharedPreferences preferences = await SharedPreferences.getInstance();
final pk = preferences.get("privateKey");
if (pk != null && pk != "") await Web3AuthFlutter.logout();
await preferences.clear();
// Clear FCM token
String? token = await FirebaseMessaging.instance.getToken();
if (token != null) {
await deleteToken(token);
}
await FirebaseAuth.instance.signOut();
} catch (e) {
logger.e(e);
showSnackBar("An unexpected error has occured");
}
}```