How to set logout by API in ReactJs

后端 未结 0 1922
悲&欢浪女
悲&欢浪女 2020-12-07 14:17

I am trying to update my code for the Logout function (this another file)

authApi.logout = () => localStorage.setItem("state", "");


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