web/auth.ts

14 lines
309 B
TypeScript
Raw Permalink Normal View History

import NextAuth from "next-auth"
import Authentik from "next-auth/providers/authentik"
export const { handlers, signIn, signOut, auth } = NextAuth({
providers: [Authentik],
callbacks: {
authorized: async ({ auth }) => {
return !!auth
},
},
pages: {
signIn: "/account/login",
},
})