Skip to content

Commit

Permalink
fix: wrong url for login with code
Browse files Browse the repository at this point in the history
  • Loading branch information
rYuuk committed Dec 4, 2023
1 parent 281dee2 commit bca3c36
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Runtime/AvatarCreator/WebRequests/AuthAPIRequests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@ public async Task SendCodeToEmail(string email, string userId = "")

public async Task<UserSession> LoginWithCode(string code)
{
var url = string.Format(Env.RPM_SUBDOMAIN_BASE_URL, domain, "/auth/login");

var payload = AuthDataConverter.CreatePayload(new Dictionary<string, string>
{
{ AuthConstants.AUTH_TYPE_CODE, code }
});

var response = await webRequestDispatcher.SendRequest<Response>(url, HttpMethod.POST, headers, payload);
var response = await webRequestDispatcher.SendRequest<Response>( $"{rpmAuthBaseUrl}/auth/login", HttpMethod.POST, headers, payload);
response.ThrowIfError();

var data = AuthDataConverter.ParseResponse(response.Text);
Expand Down

0 comments on commit bca3c36

Please sign in to comment.