update
This commit is contained in:
@@ -57,12 +57,12 @@ export function useKeycloak() {
|
||||
}
|
||||
};
|
||||
|
||||
const login = (options?: Keycloak.KeycloakLoginOptions) => {
|
||||
const loginSSO = (options?: Keycloak.KeycloakLoginOptions) => {
|
||||
if (!kc) throw new Error("Keycloak not initialized");
|
||||
return kc.login(options);
|
||||
};
|
||||
|
||||
const logout = (redirectUri?: string) => {
|
||||
const logoutSSO = (redirectUri?: string) => {
|
||||
if (!kc) throw new Error("Keycloak not initialized");
|
||||
return kc.logout({ redirectUri });
|
||||
};
|
||||
@@ -78,6 +78,7 @@ export function useKeycloak() {
|
||||
// });
|
||||
|
||||
const apiErrors = ref<Record<string, string>>({})
|
||||
const { login } = useUserStore()
|
||||
|
||||
const getResponse = async () => {
|
||||
console.log("=================== onto login fes!!! ===================")
|
||||
@@ -108,8 +109,8 @@ export function useKeycloak() {
|
||||
|
||||
return {
|
||||
initKeycloak,
|
||||
login,
|
||||
logout,
|
||||
loginSSO,
|
||||
logoutSSO,
|
||||
getToken,
|
||||
isAuthenticated,
|
||||
getProfile,
|
||||
|
||||
Reference in New Issue
Block a user