From ebbe164b60159693a4a124eca1da934e52ebd772 Mon Sep 17 00:00:00 2001 From: Pierre Le Fevre Date: Sat, 10 Dec 2022 12:15:29 +0100 Subject: [PATCH] #25 Fix leading / in signIn route --- packages/astro-auth-client/src/signIn/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro-auth-client/src/signIn/index.ts b/packages/astro-auth-client/src/signIn/index.ts index 058c046..407458f 100644 --- a/packages/astro-auth-client/src/signIn/index.ts +++ b/packages/astro-auth-client/src/signIn/index.ts @@ -41,7 +41,7 @@ const signIn = async ({ const provider = new ethers.providers.Web3Provider(window.ethereum as any); const signer = provider.getSigner(); - const response = await fetch("api/auth/sign-message"); + const response = await fetch("/api/auth/sign-message"); const data = await response.json(); if (!response.ok) { @@ -59,7 +59,7 @@ const signIn = async ({ }; } - const response = await fetch("api/auth/signin", { + const response = await fetch("/api/auth/signin", { method: "POST", body: JSON.stringify({ provider,