TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Guide to Bearer Tokens: JWT vs. Opaque Tokens

19 pointsby bubblehack3rabout 1 month ago

1 comment

motorestabout 1 month ago
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 未加载