Merge branch 'front_foundation' of https://gitea.piair.dev/piair/MyINPulse into front_foundation
This commit is contained in:
commit
ca8c5d9209
@ -3,10 +3,10 @@
|
||||
import { useAuthStore } from "@/stores/authStore.ts";
|
||||
import keycloakService from "@/services/keycloak";
|
||||
import type { Pinia } from "pinia";
|
||||
import type { AppConfig } from "vue";
|
||||
import type { App } from "vue";
|
||||
// Setup auth store as a plugin so it can be accessed globally in our FE
|
||||
const authStorePlugin = {
|
||||
install(app: AppConfig, option: Pinia) {
|
||||
install(app: App, option: { pinia: Pinia }) {
|
||||
const store = useAuthStore(option.pinia);
|
||||
app.config.globalProperties.$store = store;
|
||||
keycloakService.CallInitStore(store);
|
||||
|
Loading…
x
Reference in New Issue
Block a user