Sign out (redirect true) in Docker

So I have this problem where I want to use
signOut({redirect:true})
signOut({redirect:true})
and let's say that NEXT_AUTH_URL=localhost:3000 and my docker container runs in localhost:80 so my app is accessible by port 80 and internally the app runs in port 3000, the moment I click to sign out I will be redirected to NEXT_AUTH_URL. For the time being I am using redirect: false and I check if session === null and I redirect users to login page. Is it possible by using redirect: true to by redirected to your actual domain or ip instead the one that Next Auth runs inside the container ?
2 Replies
Neto
Neto3y ago
Client API | NextAuth.js
The NextAuth.js client library makes it easy to interact with sessions from React applications.
elefcodes
elefcodesOP3y ago
thank you, don't know how i missed that
Want results from more Discord servers?
Add your server