We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前的登录设计是登录后返回 role、token 和 expires,客户端在发请求或重载 token 前检查一下是否过期,避免再去直接请求然后 401。 https://github.com/i-m-feeling-lucky/miscellaneous/blob/f10ccd78277c878721156f5f957c6070dd801714/api.yaml#L52-L59
但是现在登录的返回信息还没有 expires(比如 86400 表示有效期一天)。
The text was updated successfully, but these errors were encountered:
我来加一下, expires 要设为多少啊
Sorry, something went wrong.
不知道,你自己定吧🤣 8h,1d,3d 哈哈我觉得都成
Make it expire in a year, see i-m-feeling-lucky/backend#1
5d57609
No branches or pull requests
目前的登录设计是登录后返回 role、token 和 expires,客户端在发请求或重载 token 前检查一下是否过期,避免再去直接请求然后 401。
https://github.com/i-m-feeling-lucky/miscellaneous/blob/f10ccd78277c878721156f5f957c6070dd801714/api.yaml#L52-L59
但是现在登录的返回信息还没有 expires(比如 86400 表示有效期一天)。
The text was updated successfully, but these errors were encountered: