update auth guard and sign-in forms, add guidelines for custom auth to handle login and logout,

This commit is contained in:
louiscklaw
2025-05-11 07:54:23 +08:00
parent 25c1d3c917
commit 9a8fd1c073
4 changed files with 139 additions and 25 deletions

View File

@@ -29,6 +29,7 @@ export function AuthGuard({ children }: AuthGuardProps): React.JSX.Element | nul
return;
}
// NOTE: here state that if user = null, eject user to login page
if (!user) {
logger.debug('[AuthGuard]: User is not logged in, redirecting to sign in');