Skip to content

Commit

Permalink
Update the endpoints used when connecting accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikkel Sørensen authored and kirre-bylund committed Feb 9, 2024
1 parent 5c35529 commit e13d86f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Runtime/Game/LootLockerSDKManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ public static void ConnectGoogleAccount(string idToken, Action<LootLockerRespons

string data = LootLockerJson.SerializeObject(new LootLockerConnectGoogleProviderToAccountRequest{id_token = idToken });

LootLockerServerRequest.CallAPI(endpoint, LootLockerEndPoints.disconnectAccount.httpMethod, data, (response) => { LootLockerResponse.Deserialize(onComplete, response); });
LootLockerServerRequest.CallAPI(endpoint, LootLockerEndPoints.connectProviderToAccount.httpMethod, data, (response) => { LootLockerResponse.Deserialize(onComplete, response); });
}

/// <summary>
Expand All @@ -882,7 +882,7 @@ public static void ConnectGoogleAccount(string idToken, GoogleAccountProviderPla

string data = LootLockerJson.SerializeObject(new LootLockerConnectGoogleProviderToAccountWithPlatformRequest() { id_token = idToken, platform = platform });

LootLockerServerRequest.CallAPI(endpoint, LootLockerEndPoints.disconnectAccount.httpMethod, data, (response) => { LootLockerResponse.Deserialize(onComplete, response); });
LootLockerServerRequest.CallAPI(endpoint, LootLockerEndPoints.connectProviderToAccount.httpMethod, data, (response) => { LootLockerResponse.Deserialize(onComplete, response); });
}

/// <summary>
Expand All @@ -902,7 +902,7 @@ public static void ConnectAppleAccountByRestSignIn(string authorizationCode, Act

string data = LootLockerJson.SerializeObject(new LootLockerConnectAppleRestProviderToAccountRequest() { authorization_code = authorizationCode });

LootLockerServerRequest.CallAPI(endpoint, LootLockerEndPoints.disconnectAccount.httpMethod, data, (response) => { LootLockerResponse.Deserialize(onComplete, response); });
LootLockerServerRequest.CallAPI(endpoint, LootLockerEndPoints.connectProviderToAccount.httpMethod, data, (response) => { LootLockerResponse.Deserialize(onComplete, response); });
}

#endregion
Expand Down

0 comments on commit e13d86f

Please sign in to comment.