Closed sano-suguru closed 4 years ago
未ログインの判定はこれでできませんでしょうか
const authContext = useContext(AuthContext); if (!authContext.authenticated) { Router.push("/login"); }
未ログインの判定はこれでできませんでしょうか
const authContext = useContext(AuthContext); if (!authContext.authenticated) { Router.push("/login"); }