Skip to content

Commit

Permalink
Fix /link_google_play payload
Browse files Browse the repository at this point in the history
  • Loading branch information
oliexe committed Mar 26, 2024
1 parent 5b1a966 commit 7435c62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 1 addition & 4 deletions Assets/Stash/Scripts/Core/StashClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,7 @@ public static async Task<LinkResponse> LinkGooglePlayGames(string challenge, str
var requestBody = new LinkGooglePlayGamesBody()
{
codeChallenge = challenge,
verification = new LinkGooglePlayGamesBody.Verification()
{
authCode = authCode
},
authCode = authCode,
user = new LinkGooglePlayGamesBody.User()
{
id = playerId
Expand Down
2 changes: 1 addition & 1 deletion Assets/Stash/Scripts/Core/StashConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ public class StashConstants

public const string LinkAccount = "/sdk/link_code/link";
public const string LinkAppleGameCenter = "/sdk/link_code/link_apple_game_center";
public const string LinkGooglePlayGames = "/sdk/link_code/link_google_play_games";
public const string LinkGooglePlayGames = "/sdk/link_code/link_google_play";
}
}
8 changes: 1 addition & 7 deletions Assets/Stash/Scripts/Models/LinkGooglePlayGamesBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,9 @@ namespace Stash.Models
public class LinkGooglePlayGamesBody
{
public string codeChallenge;
public Verification verification;
public string authCode;
public User user;

[Serializable]
public class Verification
{
public string authCode;
}

[Serializable]
public class User
{
Expand Down

0 comments on commit 7435c62

Please sign in to comment.