dsh-jwt
在终端中运行以下命令:
dsh plugin install uckkk/dsh-jwt
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在 DeepSeek Harness 中运行 dsh plugin install uckkk/dsh-jwt 完成安装,完整源码地址为 https://github.com/uckkk/dsh-jwt 。
插件介绍
When you are debugging an API or tracing an authentication failure, you often have nothing but a long JWT string on your hand and no quick way to see which claims it carries or whether it has already expired. dsh-jwt fills that gap: invoke jwt_decode in a session and immediately get a structured view of the header and payload, along with an expiration check, without fumbling with browser extensions or web-based decoders.
The whole implementation is pure Node with no extra crypto dependencies. It does exactly two things: parse the header and payload, and compare the exp field against the current time. It deliberately skips signature verification, since validation is the server's job. This small utility simply helps you see what the token looks like locally.
Whether you are a backend developer who frequently inspects token contents, a DevOps engineer debugging auth pipelines, or an ops person doing a security check and wanting to know what a credential actually says, dsh-jwt can serve as a lightweight, zero-dependency companion you can summon from any session.
使用场景
- 调试 API 时快速查看 token 中携带的声明
- 排查认证失败时确认 token 是否已过期
- 安全审计时本地阅读 credential 的内容
- scenarios_en_ignored_placeholder
适合人员
- 频繁调试 token 结构的后端工程师
- 排查认证链路的 DevOps 工程师
- 需要快速阅读 credential 声明的安全审计人员