public void ClearTokens(bool clearCookies) { AccessToken = null; RefreshToken = null; SessionSecretKey = null; AuthType = OKAuthType.None; if (webView != null && clearCookies) { webView.ClearCookies(); } }
public void ClearTokens(bool clearCookies = true) { AccessToken = null; AccessTokenExpiresAt = DateTime.Now; RefreshToken = null; RefreshTokenExpiresAt = DateTime.Now; SessionSecretKey = null; AuthType = OKAuthType.None; if (webView != null && clearCookies) { webView.ClearCookies(); } }