Files
archived-next-auth/apps/dev/nextjs/components/access-denied.js
2023-05-01 12:41:12 +02:00

21 lines
376 B
JavaScript

import { signIn } from "next-auth/react"
export default function AccessDenied() {
return (
<>
<h1>Access Denied</h1>
<p>
<a
href="/api/auth/signin"
onClick={(e) => {
e.preventDefault()
signIn()
}}
>
You must be signed in to view this page
</a>
</p>
</>
)
}