refreshSession method

Future<bool> refreshSession()

Attempts to refresh the current session token.

Nothing in Vyuh calls this automatically: call it from your own code, for example after a request returns 401, then retry the request. Returns true if the token was successfully refreshed. Default implementation returns false (no refresh support).

Implementation

Future<bool> refreshSession() => Future.value(false);