fix: proper fix
This commit is contained in:
parent
01f062211a
commit
08706af6c2
@ -2,9 +2,11 @@
|
||||
|
||||
import { useAuthStore } from "@/stores/authStore.ts";
|
||||
import keycloakService from "@/services/keycloak";
|
||||
import type { Pinia } from "pinia";
|
||||
import type { App } from "vue";
|
||||
// Setup auth store as a plugin so it can be accessed globally in our FE
|
||||
const authStorePlugin = {
|
||||
install(app: unknown, option: unknown) {
|
||||
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