How to display custom API error messages client side with Auth.js?
I am trying to setup my Credential provider so that when the user fails to login (wrong username/password, for example) I can display the error message returned by the API in the client side.
useSession always returns empty user object after authentication
I am trying to implement Auth.js
in my Next.js
project and I managed to make the login work but when I try to access the user data from the session the user object is always empty even tho the session says authenticated and has an expiration date.
I am integrating next-auth functionality in my Next.js app and it throws an error: Catch-all must be the last part of the URL
When I am integrating next-auth functionality in my Next.js application, it throws an error: Catch-all must be the last part of the URL.