return token;
} else {
return null;
}
}
<BUG>public static void clearAccessTokenFromSharedPreferences(Context context) {
SharedPreferences secure = context.getSharedPreferences(context.getPackageName() + ".sdk", Context.MODE_PRIVATE);</BUG>
SharedPreferences.Editor editor = secure.edit();
editor.remove("access_token");
editor.remove("expires_at");

return token;
} else {
return null;
}
}
public static void clearAccessTokenFromSharedPreferences() {
Context context = SPiDClient.getInstance().getConfig().getContext();
SharedPreferences secure = context.getSharedPreferences(context.getPackageName() + ".sdk", Context.MODE_PRIVATE);
SharedPreferences.Editor editor = secure.edit();
editor.remove("access_token");
editor.remove("expires_at");
