Auth.js | signOut() from client vs server
Unanswered
PepeW posted this in #help-forum
PepeWOP
Using Auth.js we can import 2 differents
- from
- from
What are the advantages of signing out from the server instead of the client ?
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 actionWhat are the advantages of signing out from the server instead of the client ?
1 Reply
PepeWOP
up