Remove Cookies and Sign out server-side in Next.js

前端 未结 0 1868
感动是毒
感动是毒 2020-12-06 01:32

I need to check if there\'s a token and if the token expired in getInitialProps, and then if the token is expired clear the Cookies from the browser and sign out the user.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题