Saving into localStorage with nodejs

后端 未结 3 1105
余生分开走
余生分开走 2021-02-03 14:23

I need to save jwt-token in local-storage through nodejs after the user has logged in (has been authorized ).

After I check if the user/password is correct in my control

3条回答
  •  天涯浪人
    2021-02-03 14:36

    If you mean html 5 localStorage, there's no such a thing since node.js is a server-side technology. Html 5 localStorage is a client side feature supported

    refer How to access localStorage in node.js?

提交回复
热议问题