Auth.js and Next-Intl
Unanswered
Satin Angora posted this in #help-forum
Satin AngoraOP
I am about to complete my website. Everything is already up and running. However, I am now facing a problem: I want to add a login and registration function via Auth.js. However, I use next-auth on my website - and also its routing. How do I do this with the API folder and what else do I need to configure? Since my URLS always look like this my-test-nudel.com/en or /en
Unfortunately I can't find anything on the official site :/
Unfortunately I can't find anything on the official site :/
8 Replies
@Satin Angora I am about to complete my website. Everything is already up and running. However, I am now facing a problem: I want to add a login and registration function via Auth.js. However, I use next-auth on my website - and also its routing. How do I do this with the API folder and what else do I need to configure? Since my URLS always look like this my-test-nudel.com/en or /en
Unfortunately I can't find anything on the official site :/
edit your message right now, removing that domain and/or changing it to something else
Satin AngoraOP
Already done, sorry - that was not intentional 🙈
American Crow
next-intl has a complete example for that:
https://next-intl-docs.vercel.app/docs/routing/middleware#example-auth-js
https://next-intl-docs.vercel.app/docs/routing/middleware#example-auth-js
Satin AngoraOP
When I read that ... I switch back to auth
I was specifically looking for a solution for auth.js 5 🙈 but then I'll wait and do it with that 🙈
American Crow
Don't understand what you are using / asking?
Authjs is NextAuth version 5. They formerly up to version 4 were named next-auth and rebranded to auth.jswith version 5Satin AngoraOP
I'm getting totally confused with the names ... because in the .ts file it says Next-auth again 😂
Satin AngoraOP
So for my needs I will realise it via clerk for now