How do I validate sessions / access in my backend
Am I correct to assume that I need to query the db based off the access token provided to verify if the request is legit, or is there an api that I can use to do this built-in to better-auth?
My backend api is made in C# using ASP.NET core, so I need to protect certain routes which is why im asking.
4 Replies
so you trynna use better auth on client ? or do you want to setup another server using better auth
Huh?
I already have better auth setup, I’m simply wondering how I can also protect my backend api
If a user logs in on the client, there should be a way to validate requests made to the server with like an access token or some other kind of unique identifier to the session
i mean you backend is C# right ?
Correct
Still no answer?
I have since learned I can use JWTs so this is now a useless forum. Wish the responses were better, but it is what it is!