Skip to content

Commit

Permalink
astro-community#25 Fix leading / in signIn route
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrelefevre authored Dec 10, 2022
1 parent aa651e3 commit ebbe164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro-auth-client/src/signIn/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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,
Expand Down

0 comments on commit ebbe164

Please sign in to comment.