refreshSession method

Future<bool> refreshSession()

Attempts to refresh the current session token.

Called by the network layer when a 401 is received, giving the auth plugin a chance to refresh the token before the caller retries. Returns true if the token was successfully refreshed. Default implementation returns false (no refresh support).

Implementation

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