Пример #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!");
            }
        }
Пример #2
0
 private static void ReloadUser(bool isSuccess, User user)
 {
     FootballAPI.GetCurrentUser(OnUserDataUpdated);
 }