mirror of
https://github.com/stoatchat/service-admin-panel.git
synced 2026-07-01 21:44:47 -04:00
22 lines
463 B
TypeScript
22 lines
463 B
TypeScript
import type { AuthOptions } from "next-auth";
|
|
import AuthentikProvider from "next-auth/providers/authentik";
|
|
|
|
/**
|
|
* Authentication options
|
|
*/
|
|
export const authOptions: AuthOptions = {
|
|
providers: [
|
|
AuthentikProvider({
|
|
clientId: process.env.AUTHENTIK_ID!,
|
|
clientSecret: process.env.AUTHENTIK_SECRET!,
|
|
issuer: process.env.AUTHENTIK_ISSUER!,
|
|
}),
|
|
],
|
|
jwt: {
|
|
maxAge: 2 * 60 * 60, // 2 hours
|
|
},
|
|
pages: {
|
|
signIn: "/",
|
|
},
|
|
};
|