Replies: 1 comment 2 replies
-
Please!!! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, I've been unable to implement the very simple nextauth for credentials for about 8 days, but I can't do it right away as soon as I open the project it returns the errors:
on any route I go, I've tried several ways, I've tried several help channels, documentation, all... I believe it's because of the location of the folders or because of vite?
can you help me please?
ja tentei de tudo, ChatGTP, google, foruns, documentação... estou a mais de 8 dias parado por conta desse erro:
Tentando implementar o NextAuth, daí qq rota que vá: retorna esse erro:
I confess that it gives me a headache to follow the documentation, and as days go by, it gets more difficult, so I'm trying here now!
I downloaded the example from NExtAuth itself, and it seems to me that it worked, despite always returning the error user not registered , invalidated etc... but the internal error does not occur.
I suspect Vite!!
This project is a Dashboard that I downloaded from github, it uses vite as a server,
everything seemed perfect, the project was going very well, until I had to implement authentication with NextAuth,
*I imagine that in addition to something in the routes, I must be making a mistake in the direction of the folders, including the session, another thing that I noticed is that some use a [...nextauth] folder and inside it a router file, others use [.. .nextauth] as the file already (my case now, but I've tried both ways), another thing, there are some that put the api folder inside /src directly, others put it inside the /pages folder, others put the folder pages inside src/api, finally tied a huge knot in my mind. And since I'm alone I'm almost freaking out!! not to mention the delay of the project
Obs. the system doesn't even arrive at [...nextauth].ts, it doesn't execute anything inside,
the error occurs as soon as I access the system, in any route and it already runs as if it had tried without me having to click the Enter button!!! (on any route)
Here's a print from the browser!!
HELP!
As I don't even know which part I owe here, I go for everyone involved, from the route to the SignIn().
Main.jsx:
App.Jsx:
Page.tsx = Pagina Login (que chama o signIn() )
[...nextauth].ts
NextAuthSessionProvider:
package.json
ViteConfig
TscConfig
.ENV
Minha estrutuda das pastas:
Beta Was this translation helpful? Give feedback.
All reactions