React JS - should auto redirect to login page when session expired
Hi Guys ! using better-auth with react js , i am using sessions for the auth things , my question is when the session get expired (in cookie) i want my react app to redirect to login page, does better-auth give any support for this ?
i know i can use "https://www.better-auth.com/docs/basic-usage#signout" , but what i am asking instead of i am signing out react should auto sign out and move to login page when the session expired ! does better-auth support this ? if so how ?
PS: using express for the backend
Thanks in Advance
i know i can use "https://www.better-auth.com/docs/basic-usage#signout" , but what i am asking instead of i am signing out react should auto sign out and move to login page when the session expired ! does better-auth support this ? if so how ?
PS: using express for the backend
Thanks in Advance