571726193
V2EX  ›  问与答

[求解] jwt token

  •  
  •   571726193 · Oct 10, 2018 · 2010 views
    This topic created in 2817 days ago, the information mentioned may be changed or developed.

    jwt token 生成的 token 是存在哪里的 下次访问 带上这个 token 服务器是怎么 知道 和第一次返回的 token 值一样!

    airyland
        1
    airyland  
       Oct 10, 2018
    jwt 不保存 token,token 可以解码出来看到用户信息,过期时间,没有必要比较。
    571726193
        2
    571726193  
    OP
       Oct 10, 2018
    @airyland 第一次登录 不是需要返回一个 token 吗?
    下次请求 带上这个 token 值吗?
    我比较的是 这个 token 是否有效,如果有效再判断它是否失效?是不是 多余了
    真心不懂,求大佬教我啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2625 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 01:15 · PVG 09:15 · LAX 18:15 · JFK 21:15
    ♥ Do have faith in what you're doing.