TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A Guide to Bearer Tokens: JWT vs. Opaque Tokens

19 点作者 bubblehack3r大约 1 个月前

1 comment

motorest大约 1 个月前
From the article:<p>&gt; JWTs (...) can’t be revoked easily and may expose sensitive data if not encrypted.<p>This is not true.<p>Revoking a JWT is as simple as adding the JWT ID to a list of revoked JWTs. If a JWT is valid and its JWT ID is in the revoked list, the JWT is refoked. The tradeoff is that resource servers need to periodically refresh this list.<p>Also, a JWT only leaks sensitive data if you purposely want the JWT to ship sensitive data. Nothing forces you to do that.<p>&gt; Opaque tokens (...) offer better security and revocation control but come with extra overhead and reduced scalability.<p>This is simply wrong. Any security and revocation check you can do with a opaque token, you can do with a JWT as well.<p>Overall the quality of the article is quite poor.
评论 #43662044 未加载
评论 #43661684 未加载