Getting the full JWT token

So I'm trying to build a realtime chat app which uses asp.net with signalr on the backend. The problem is that to use it I have to be authenticated, where I configured it to use the same signing key as better-auth, but the problem is that I can't quite find a way to get the FULL JWT token to use to authenticate myself to the backend. Tried the bearer plugin and it just did what I was doing, but easier. So the problem is I can't find the FULL JWT token used. Is it even possible to get it?
4 Replies
daveycodez
daveycodez5mo ago
JWT plugin exposes /api/auth/token endpoint to get the JWT token
kamberoFF
kamberoFFOP5mo ago
Thx That was helpful, but there is another problem The algorithm that better-auth uses for the keys is different from the one that asp.net expects. Should I modify the auth config so that they both settle for a common one Since I don't see EdDSA in ASP.NET Or I may have not looked through
daveycodez
daveycodez5mo ago
Better Auth has multiple different formats you can choose from in your JWT configuration for the plugin in auth.ts
kamberoFF
kamberoFFOP5mo ago
Yep managed to do it Thx for the help

Did you find this page helpful?