comicbox/pages/api/auth/[...nextauth].ts

15 lines
437 B
TypeScript

import NextAuth, { NextAuthOptions } from "next-auth";
import Keycloak from "next-auth/providers/keycloak";
import process from "process";
export const authOptions: NextAuthOptions = {
providers: [
Keycloak({
clientId: process.env.KEYCLOAK_ID!,
clientSecret: process.env.KEYCLOAK_SECRET!,
issuer: process.env.KEYCLOAK_ISSUER!,
}),
],
};
export default NextAuth(authOptions);