This file contains hidden or 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
| import { useUser, withPageAuthRequired } from "@auth0/nextjs-auth0"; | |
| import Head from "next/head"; | |
| import Navbar from "../components/Navbar"; | |
| import styles from "../styles/Home.module.css"; | |
| function Profile({ user, error, isLoading }) { | |
| if (isLoading) return <div>Loading...</div>; | |
| if (error) return <div>{error.message}</div>; | |
| return ( |
This file contains hidden or 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
| import '../styles/globals.css' | |
| import { UserProvider } from '@auth0/nextjs-auth0'; | |
| export default function App({ Component, pageProps }) { | |
| return ( | |
| <UserProvider> | |
| <Component {...pageProps} /> | |
| </UserProvider> | |
| ); | |
| } |
This file contains hidden or 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
| import { useUser } from "@auth0/nextjs-auth0"; | |
| import Head from "next/head"; | |
| import Navbar from "../components/Navbar"; | |
| import styles from "../styles/Home.module.css"; | |
| export default function Profile() { | |
| const { user, error, isLoading } = useUser(); | |
| if (isLoading) return <div>Loading...</div>; | |
| if (error) return <div>{error.message}</div>; | |
| return ( |
This file contains hidden or 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
| import { handleAuth } from '@auth0/nextjs-auth0'; | |
| export default handleAuth(); |
This file contains hidden or 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
| AUTH0_SECRET=<YOUR_AUTH0_SECRET> | |
| AUTH0_BASE_URL=http://localhost:3000 | |
| AUTH0_ISSUER_BASE_URL=<YOUR_AUTH0_DOMAIN> | |
| AUTH0_CLIENT_ID=<YOUR_AUTH0_CLIENT_ID> | |
| AUTH0_CLIENT_SECRET=<YOUR_AUTH0_CLIENT_SECRET> |
NewerOlder