konstantin
konstantin
BABetter Auth
Created by lukas on 3/24/2025 in #help
Dealing with session expiration in a React app
I have an auth guard and it's a decent setup. For a more agnostic approach you can add an auth middleware and return some standard response (+code) then handle that for all responses to the client
13 replies
BABetter Auth
Created by lukas on 3/24/2025 in #help
Dealing with session expiration in a React app
setup an auth guard with useSession on the frontend, then just revoke the session whenever you want on the backend, or let it expire
13 replies