Next.js Discord

Discord Forum

Auth.js | signOut() from client vs server

Unanswered
PepeW posted this in #help-forum
Open in Discord
Using Auth.js we can import 2 differents signOut() (same from signIn()) functions:
- from next-auth/react, giving us the possibility to sign out from the client
- from @/auth (the auth.ts config file), giving us the possibility to sign out from the server using a server action

What are the advantages of signing out from the server instead of the client ?

1 Reply

up