generative_front/lib/keycloak.js
Hossein Salari d4a2acba6e
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 2m53s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 6s
core: update many files
2026-02-23 13:41:29 +03:30

17 lines
393 B
JavaScript

import Keycloak from "keycloak-js";
const keycloak = new Keycloak({
url: "https://auth.ibagher.ir",
realm: "bi",
clientId: "rasad",
});
export const initKeycloak = () =>
keycloak.init({
onLoad: "login-required",
checkLoginIframe: false, // optional
flow: "implicit", // You can change this to 'standard' if you use authorization code flow
});
export default keycloak;