From bca3c364f1a638e0cc7ba51d1e12c4ba10624451 Mon Sep 17 00:00:00 2001 From: Robin <1121080+rYuuk@users.noreply.github.com> Date: Mon, 4 Dec 2023 20:12:17 +0530 Subject: [PATCH] fix: wrong url for login with code --- Runtime/AvatarCreator/WebRequests/AuthAPIRequests.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Runtime/AvatarCreator/WebRequests/AuthAPIRequests.cs b/Runtime/AvatarCreator/WebRequests/AuthAPIRequests.cs index e4879707..5b7b8bd6 100644 --- a/Runtime/AvatarCreator/WebRequests/AuthAPIRequests.cs +++ b/Runtime/AvatarCreator/WebRequests/AuthAPIRequests.cs @@ -51,14 +51,12 @@ public async Task SendCodeToEmail(string email, string userId = "") public async Task LoginWithCode(string code) { - var url = string.Format(Env.RPM_SUBDOMAIN_BASE_URL, domain, "/auth/login"); - var payload = AuthDataConverter.CreatePayload(new Dictionary { { AuthConstants.AUTH_TYPE_CODE, code } }); - var response = await webRequestDispatcher.SendRequest(url, HttpMethod.POST, headers, payload); + var response = await webRequestDispatcher.SendRequest( $"{rpmAuthBaseUrl}/auth/login", HttpMethod.POST, headers, payload); response.ThrowIfError(); var data = AuthDataConverter.ParseResponse(response.Text);