Beispiel #1
0
            private void OnUserLoginStateChange(bool loggedIn)
            {
                m_UserInfo = new UserInfo();

                m_AuthCodeRequested = false;
                m_TokenRequest?.Abort();
                m_UserInfoRequest?.Abort();
                m_AccessTokenRequest?.Abort();

                if (loggedIn)
                {
                    GetAuthCode();
                }
            }
Beispiel #2
0
            public void ClearCache()
            {
                m_AuthCodeRequested = false;
                m_TokenRequest?.Abort();
                m_UserInfoRequest?.Abort();
                m_AccessTokenRequest?.Abort();

                m_TokenRequest       = null;
                m_UserInfoRequest    = null;
                m_AccessTokenRequest = null;

                m_UserInfo    = null;
                m_AuthCode    = null;
                m_AccessToken = null;
                m_TokenInfo   = null;
            }