Invalidating JSON Web Tokens

前端 未结 28 2759
夕颜
夕颜 2020-11-22 06:17

For a new node.js project I\'m working on, I\'m thinking about switching over from a cookie based session approach (by this, I mean, storing an id to a key-value store conta

28条回答
  •  無奈伤痛
    2020-11-22 06:50

    I just save token to users table, when user login I will update new token, and when auth equal to the user current jwt.

    I think this is not the best solution but that work for me.

提交回复
热议问题