简体   繁体   中英

JWT identify type of the token(refresh or access)

I'm using the following library for parsing jwt tokens: io.jsonwebtoken . Is it possible to identify the type of the token?(whether it's refresh or access token)

如果我们将OAuth2与jwt一起使用,则Claims中还有其他字段-“ ati ”,因此我们可以用来标识它是访问令牌还是刷新令牌。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM