Beispiel #1
0
        private void OnAuthenticated(bool isSuccess, string token)
        {
            IsAuthenticated = isSuccess;

            if (isSuccess)
            {
                FootballAPI.BearerToken = token;
                Debug.Log($"Auth Successful: {token}");

                FootballAPI.GetCurrentUser(OnUserDataUpdated);
            }
            else
            {
                Debug.LogError("Auth failed!");
            }
        }
Beispiel #2
0
 private static void ReloadUser(bool isSuccess, User user)
 {
     FootballAPI.GetCurrentUser(OnUserDataUpdated);
 }