clearAuthentication method

Future<void> clearAuthentication()

Clears the authentication, you may want to call this in case the user clicks in a logout button for example.

After calling clearAuthentication the user will NOT be able to interact anymore with routes created with addRouteFor.authenticatedUsers on the server side

Implementation

Future<void> clearAuthentication () {
  return getIt.get<AuthenticateService>().clearAuthentication();
}