gurkang
❔ Handling Supabase auth with dotnet backend. Is this way wrong/not the dotnet way?
I'm authenticating users on the frontend using supabase auth. After successful authentication I get returned user data, jwt, and more.
I then want communicate with some backend services, which I'm trying to write in dotnet.
I include the token from FE in the request and then handle it with some middleware to handle this like so:
But from my experience when doing auth on .Net you're "supposed" to use the
useAuthorisation/useAuthentication
middleware that's provided by default in the .Net framework?
Am I trying to force a very "not dotnet" style of coding onto the framework?
Is there a better way to do this?174 replies