setToken method
stores access token and other retrieved information from AuthApi.issueAccessToken
Implementation
@override
Future<void> setToken(OAuthToken token) async {
SharedPreferences preferences = await SharedPreferences.getInstance();
await preferences.setString(tokenKey, jsonEncode(token));
}