Things to Use Instead of JSON Web Tokens
&gt; The problem with JWT is the user gets to choose which algorithm to use.<p>Only if you completely bungle the implementation on the server-side. The &#x27;none&#x27; &#x27;algorithm&#x27; isn&#x27;t supported by up-to-date JWT libraries with a good track record, and you should always limit the algorithms you&#x27;ll allow on the server. So if you sign your tokens with a RSA-2048 key-pair, you would discard any token that isn&#x27;t using that algorithm.<p>Of course if you are building an API that blindly accepts whatever it receives from a user agent you are bound to create a security gap — but that holds true for anything users send you though, not just JWTs. JSON Web Token is not that hard to grok, and it isn&#x27;t a &#x27;foot-gun&#x27; technology (just practice trigger discipline — i.e., read the documentation).<p>I&#x27;m a Java guy, so I&#x27;ll limit my experience to the libraries available there, but of the four Java libraries available, three provide strict validation of the signing algorithm out of the box, and explicitly document this in their examples and documentation (I think the fourth does too, but I haven&#x27;t tried that one myself).<p>JSON Web Token is a neat standard that has a lot of good parts that can reliably be used to create and process authentication tokens. So if you are still worried about developers getting it wrong, then instead of saying &#x27;don&#x27;t use JWT&#x27;, why not promote a safe subset of the specification instead and promote that? Call it &#x27;iron-jwt&#x27; or something. It beats rolling your own solution.<p>Or if you want to be particularly constructive and feel that developers are misusing this technology, write a sensible, short, to the point implementers guide for using JWT and spread the word.