Integrate NextAuth with Keycloak and implement JWT validation in internal_frontend.

This commit is contained in:
2025-07-02 09:55:25 +09:00
parent da3bd7e181
commit 2f71dca04d
9 changed files with 730 additions and 38 deletions

16
internal_frontend/types/auth.d.ts vendored Normal file
View File

@@ -0,0 +1,16 @@
import NextAuth from "next-auth";
import {JWT} from "next-auth/jwt";
declare module "next-auth/jwt" {
interface JWT {
access_token?: string;
refresh_token?: string;
}
}
declare module "next-auth" {
interface Session {
accessToken?: string;
refreshToken?: string;
}
}