diff --git a/api/src/stores/main.ts b/api/src/stores/main.ts index 835b56a..172797c 100644 --- a/api/src/stores/main.ts +++ b/api/src/stores/main.ts @@ -38,6 +38,10 @@ export const useMainStore = defineStore({ if (this.user === undefined) throw 'Not logged in, this should not be called'; return this.user; }, + currentSession(): FG.Session { + if (this.session === undefined) throw 'Not logged in, this should not be called'; + return this.session; + }, permissions(): string[] { return this.user?.permissions || []; },