Beispiel #1
0
 public void logout()
 {
     EditorPrefs.DeleteKey(accessTokenKey);
     _current           = null;
     _isUserLogged      = false;
     _hasCheckedSession = true;
 }
Beispiel #2
0
        private void handleUserData(string response)
        {
            JSONNode userData = Utils.JSONParse(response);

            _current = new SketchfabProfile(userData["displayName"], userData["account"]);
            requestAvatar(getAvatarUrl(userData));
            _isUserLogged      = true;
            _hasCheckedSession = true;
        }