All checks were successful
Build and Push Nightly CI Image / build_and_push (push) Successful in 1m47s
Build and Push Docker Image / build_and_push (push) Successful in 3s
14 lines
309 B
TypeScript
14 lines
309 B
TypeScript
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",
|
|
},
|
|
}) |