auth0 works, i guess
This commit is contained in:
@@ -3,27 +3,30 @@ import type { AppProps } from "next/app";
|
||||
import { Navigation } from "../components/Navigation/Navigation";
|
||||
import { Footer } from "../components/Footer/Footer";
|
||||
import { SEO } from "../components/SEO";
|
||||
import { UserProvider } from "@auth0/nextjs-auth0/client";
|
||||
|
||||
export default function App({ Component, pageProps }: AppProps) {
|
||||
return (
|
||||
<>
|
||||
<SEO />
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
justifyContent: "space-between",
|
||||
minHeight: "100vh",
|
||||
}}
|
||||
>
|
||||
<div>
|
||||
<Navigation />
|
||||
<Component {...pageProps} />
|
||||
<UserProvider>
|
||||
<SEO />
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
justifyContent: "space-between",
|
||||
minHeight: "100vh",
|
||||
}}
|
||||
>
|
||||
<div>
|
||||
<Navigation />
|
||||
<Component {...pageProps} />
|
||||
</div>
|
||||
<div>
|
||||
<Footer />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<Footer />
|
||||
</div>
|
||||
</div>
|
||||
</UserProvider>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
3
pages/api/auth/[...auth0].ts
Normal file
3
pages/api/auth/[...auth0].ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { handleAuth } from "@auth0/nextjs-auth0";
|
||||
|
||||
export default handleAuth();
|
||||
Reference in New Issue
Block a user