move to next-auth

This commit is contained in:
Thomas Ruoff
2021-10-02 00:35:28 +02:00
committed by Thomas Ruoff
parent 9f4180388b
commit b257bc8258
12 changed files with 536 additions and 1418 deletions

16
components/denied.tsx Normal file
View File

@@ -0,0 +1,16 @@
import { signIn } from 'next-auth/react'
export default function Denied() {
return (
<>
<h1>Du bist nicht angemeldet.</h1>
<p>
<a
onClick={(e) => {
e.preventDefault()
signIn()
}}>Melde dich an um diese Seite zu sehen.</a>
</p>
</>
)
}