Back to catalog

uckkk /

dsh-jwt

Verified

JWT 解码:解析 header/payload,判断过期

0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
READMESource: main@b05aa6bb

dsh-jwt · JWT 解码

解析 JWT 的 header/payload,判断是否过期(不验签)。纯 Node 实现。

提供的工具

工具 作用
jwt_decode 解码 JWT

安装

dsh plugin add dsh-jwt

安装后在 profile 的 package.jsondsh.profile.bundles 中加入 "dsh-jwt"

用法示例

看看这个 token 里有什么、过期没有
→ 调用 jwt_decode(token="eyJhbGci...")
/ 5

No ratings yet

Community comments

No comments yet. Be the first to write one.