Neil Patrick Villanueva

Results comments of Neil Patrick Villanueva

> I have win it. But it looks like a crutch. Before use signIn('credentials',{...}) execute checkup on isExisting smt if result will be null we return {error: 'error'} and if...

> Same error here! The workaround that I found was using request cookies to check for session-token and validating it by using an api route. Here is my code: >...

if you have a middleware.ts file, try removing it. I'm currently experiencing the same problem when initializing the middleware file and exporting/wrapping with auth(). You can try and implement this...

I'm actually taking the same approach you have proposed, adding an authType field or, in my case, a provider field that indicates whether the user added to the database used...

Instead of directly importing the Model inside the SignIn callback, try and create a separate method/server action that handles the logic you are implementing inside the callback, then import and...