Files
archived-next-auth/apps/dev/nextjs-v4/components/access-denied.js
2023-04-15 17:02:46 +01: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>
</>
)
}