Remove /api/auth prefix on fetch requests under NextAuth path
Unanswered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
Hello,
I have an issue with my NextAuth usage. I currently have nextauth api under /api/auth path with a fetch request on my backend app ( /api/login )
So final result is
With full url it's working but for devops reasons it's not possible for me to have full url, i want work with path.
I have an issue with my NextAuth usage. I currently have nextauth api under /api/auth path with a fetch request on my backend app ( /api/login )
So final result is
GET /api/auth/api/login instead of GET /api/login cause nextauth run fetch under /api/auth folder pathWith full url it's working but for devops reasons it's not possible for me to have full url, i want work with path.