clearSession method

Future<void> clearSession()

reset the stored session UID from the local storage call it whenever your user logs out

Implementation

Future<void> clearSession() async {
  runZonedGuarded(
    () async {
      await _sessionApi!.clearSession();
      await _sessionApi!.initSession();
    },
    (error, stack) => debugPrint("[PAL] error reseting session: $error"),
  );
}