Files
pfadi-bussle/components/denied.tsx
Thomas Ruoff d63ded8c6a migrate auth from next-auth to better-auth with magic link support
Replace next-auth with better-auth, adding magic link email login as
the primary auth method and GitHub OAuth as an optional social provider.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 21:19:37 +01:00

25 lines
535 B
TypeScript

import { signIn } from '../lib/auth-client'
export default function Denied() {
return (
<>
<h1>Du bist nicht angemeldet.</h1>
<p>
<a
onClick={(e) => {
e.preventDefault()
if (process.env.NEXT_PUBLIC_GITHUB_ENABLED) {
signIn.social({
provider: "github",
callbackURL: window.location.href,
})
}
}}
>
Melde dich an um diese Seite zu sehen.
</a>
</p>
</>
)
}