implemented first keycloak stuff, still needs some config on keycloak and backend side to work

This commit is contained in:
Jona Kläß
2024-04-14 18:36:34 +02:00
parent 2afdee807e
commit ceac1855f3
11 changed files with 237 additions and 29 deletions

View File

@@ -0,0 +1,18 @@
import type Keycloak from 'keycloak-js';
import { defineStore } from 'pinia';
//import api from 'axios';
export const useKeycloakStore = defineStore('keycloakStore', {
state: ()=>({
keycloak: null as Keycloak| null,
}),
getters: {
getKeycloak: (state) => state.keycloak,
},
actions:{
setKeycloak(keycloak: Keycloak): void {
this.keycloak = keycloak;
},
},
});