Creating custom SignIn pages with Authjs-Sveltekit #7287
Replies: 4 comments 12 replies
-
I'm also searching how to do that, I can't find how to obtain the list of providers from the |
Beta Was this translation helpful? Give feedback.
-
This is what I did so far: hooks.server.js //this one works, I just added the pages option to redirect to my page
src/routes/auth/signin/+page.svelte
src/routes/auth/signin/+page.server.js //putting the providers manually
This sends me to a page with this url http://localhost:5173/auth/signin?callbackUrl=http%3A%2F%2Flocalhost%3A5173%2Fauthorized%2Fcv%2F647a29e46ba81ab341e4bf4a And it complains of too many redirects |
Beta Was this translation helpful? Give feedback.
-
I also have the too many redirects when I specify
When I specify
I don't have too many redirects, but the authentication seems broken (nothing happens). I prefer not investigating too much time in that right now, I know that this doesn't help much. I will probably have a look again in some time. Thank you very much |
Beta Was this translation helpful? Give feedback.
-
https://medium.com/@uriser/authentication-in-sveltekit-with-auth-js-7ff505d584c4 this looks promising. I am trying it out |
Beta Was this translation helpful? Give feedback.
-
Question 💬
Hi
I would like to create a custom login / signIn page for my app, but after do some research I can't found any example using sveltekit, instead I found this tutorial using nextjs I've tried those tutorials but the signIn method within the custom signIn page doesn't seems to work, it only refreshing the page and doesn't throw any error (I already set the debug props to true, and add the custom pages.signIn route within the SvelteKitAuth declaration).
Is the signIn method behavior considered as a bug or creating custom signIn pages is not supported yet for the sveltekit adapter?
Thanks for your response, appreciate it!
How to reproduce ☕️
Currently I'm using @auth/core: 0.5.1 and @auth/sveltekit: 0.3.0
I'm using email-password credential.
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions