public void SaveTokens(NdRefreshTokenResponse accessTokens) { _options.SetEncrypted(REFRESH_TOKEN_ID, accessTokens.RefreshToken); _options.SetEncrypted(ACCESS_TOKEN_ID, accessTokens.AccessToken); _options.SetString(EXPIRE_DATE, DateTime.Now.AddSeconds(accessTokens.ExpiresIn).ToString()); }
/// <summary> /// <see cref="IClientData.SaveTokens(NdRefreshTokenResponse, string)"/> /// </summary> public void SaveTokens(NdRefreshTokenResponse accessTokens, string key) { authenticationStorageAdapter.SaveTokens(accessTokens, key); }