示例#1
0
        public void ClearTokens(bool clearCookies)
        {
            AccessToken      = null;
            RefreshToken     = null;
            SessionSecretKey = null;
            AuthType         = OKAuthType.None;

            if (webView != null && clearCookies)
            {
                webView.ClearCookies();
            }
        }
示例#2
0
        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();
            }
        }