I have the following function for user authentication:
internal static async Task AuthenticateUser(GameUser user, int userId, string token)