問題タブ [jjwt]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
jjwt - JJWT: クレームを正しく解析するには?
次のコードのようなものを使用してテスト JWT を作成しました
"perms" はカスタム クレームで、文字列 (アクセス許可) の ArrayList を含みます。
JWT を受け取ったら、次のコードを使用します。
そして、私は次のようなものを取得します
私の質問は次のとおりです。これは、請求を取り戻すための正しい (意図した) 方法ですか? これからはカスタムメソッドで結果を解析する必要があるようですが、どういうわけかそれは意図した方法ではないと思います。
ありがとう」