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!"); } }
private static void ReloadUser(bool isSuccess, User user) { FootballAPI.GetCurrentUser(OnUserDataUpdated); }