setToken method

Future<void> setToken(
  1. String token
)

Set the authentication token and store it

Implementation

Future<void> setToken(String token) async {
  _token = token;
  await authStore?.setToken(token);
  _callbacks.onTokenChange?.call(token);
}