mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
* chore: dev -> dev/nextjs * chore: move to /examples * chore: move to playgrounds, add dev/sveltekit * Update sync.yml * chore: dev scripts
18 lines
446 B
TypeScript
18 lines
446 B
TypeScript
import Layout from "../components/layout"
|
|
|
|
export default function Page() {
|
|
return (
|
|
<Layout>
|
|
<h1>This page is protected by Middleware</h1>
|
|
<p>Only admin users can see this page.</p>
|
|
<p>
|
|
To learn more about the NextAuth middleware see
|
|
<a href="https://docs-git-misc-docs-nextauthjs.vercel.app/configuration/nextjs#middleware">
|
|
the docs
|
|
</a>
|
|
.
|
|
</p>
|
|
</Layout>
|
|
)
|
|
}
|