MCPcopy
hub / github.com/nextauthjs/next-auth / AccessDenied

Function AccessDenied

app/components/access-denied.js:3–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { signIn } from "next-auth/react"
2
3export default function AccessDenied() {
4 return (
5 <>
6 <h1>Access Denied</h1>
7 <p>
8 <a
9 href="/api/auth/signin"
10 onClick={(e) => {
11 e.preventDefault()
12 signIn()
13 }}
14 >
15 You must be signed in to view this page
16 </a>
17 </p>
18 </>
19 )
20}

Callers

nothing calls this directly

Calls 1

signInFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…