jwt setting multiple audience
we have three server one is api , one chat and one is signaling server for webrtc. chat and signaliing server uses socket.io but both are in different url and audience is different current audience in jwt allows only allow one audience string instead of array or there any other solutions for this or should i create an another endpoint for this with my own implement of jwt
4 Replies
This one of many issues I am working on, you can check out the PR and see how I solved this issue when you're implementing your own fix:
https://github.com/better-auth/better-auth/pull/4748
I still need to finish the docs and even once I do that, I don't expect it to be merged any time soon if at all.
GitHub
feat(jwt) - refactor and plugin completeness by LightTab2 · Pull R...
Quick glossary:
JWT - JSON Web Token; a {string} containing JSON Data, Signature and Claims to verify its authenticity.
JWK - JSON Web Key; a key from an asymmetric key pair used to sign JWT Payloa...
I solved in other way
By creating custom plugin
Can calling sign-jwt endpoint
Solved just now
...data
ok