mirror of
https://github.com/tinyauthapp/tinyauth.git
synced 2026-09-14 12:23:33 +08:00
feat: tailscale integration (#847)
This commit is contained in:
@@ -2,9 +2,9 @@ import { Navigate } from "react-router";
|
||||
import { useUserContext } from "./context/user-context";
|
||||
|
||||
export const App = () => {
|
||||
const { isLoggedIn } = useUserContext();
|
||||
const { auth } = useUserContext();
|
||||
|
||||
if (isLoggedIn) {
|
||||
if (auth.authenticated) {
|
||||
return <Navigate to="/logout" replace />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user