The discourse-jwt plugin works. Although, it seems it’s designed to only work with only the HS256 algorithm for whatever reason. It’s simple enough to make it work with others.
You can look at the repo I played around with discourse-jwt/plugin.rb at master · arivanandan/discourse-jwt · GitHub