setToken method

void setToken(
  1. String token
)

Sets the user's authentication token.

Implementation

void setToken(String token) {
  setAttribute('auth_token', token);
}