Created
November 20, 2020 14:58
-
-
Save acomito/d7a4285e0ac2595c23d2dc26b33c7710 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function Home() { | |
const { loading, data } = useQuery(CURRENT_USER, { | |
variables: {} | |
}) | |
if (!data) { | |
// redirect to a hosted auth0 login page | |
return <Redirect to="/api/login" /> | |
} | |
return ( | |
<Layout> | |
Hello World. You are logged in. | |
</Layout> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment