You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.
Hi!
Been testing this package and seemed like everything was working until I tried the signIn button (@astro-auth/client) in react from a more complex route.
Instead of making the request to /api/auth/signin as it is supposed to, it adds it after the current route, like /my/page/api/auth/signin, which returns a 404.
My hunch is that the fetch call is missing a leading / in the signIn function at const response = await fetch("api/auth/signin".
I tested by copying over the code and importing it locally, and it works when adding the /. (const response = await fetch('/api/auth/signin' )
I'm super new to Astro so let me know if it's wrong :) Hope this helps
The text was updated successfully, but these errors were encountered:
Hi!
Been testing this package and seemed like everything was working until I tried the signIn button (@astro-auth/client) in react from a more complex route.
Instead of making the request to /api/auth/signin as it is supposed to, it adds it after the current route, like /my/page/api/auth/signin, which returns a 404.
My hunch is that the fetch call is missing a leading
/
in the signIn function atconst response = await fetch("api/auth/signin"
.I tested by copying over the code and importing it locally, and it works when adding the
/
. (const response = await fetch('/api/auth/signin'
)I'm super new to Astro so let me know if it's wrong :) Hope this helps
The text was updated successfully, but these errors were encountered: