setAuthToken method

void setAuthToken(
  1. String accessToken,
  2. String refreshToken
)

Implementation

void setAuthToken(String accessToken, String refreshToken) {
  _accessToken = accessToken;
  _refreshToken = refreshToken;
  headers['Authorization'] = 'Bearer $_accessToken';
}