Upgrade Quasar

This commit is contained in:
2024-05-06 19:22:28 -04:00
parent 2872fb867e
commit 033993b1b8
6 changed files with 31 additions and 42 deletions

View File

@@ -5,7 +5,6 @@ import { ref } from 'vue';
export const useAuthStore = defineStore('auth', () => {
const currentUser = ref<Models.User<Models.Preferences> | null>(null);
const ready = ref(false);
async function init() {
try {
@@ -13,7 +12,6 @@ export const useAuthStore = defineStore('auth', () => {
} catch {
currentUser.value = null;
}
ready.value = true;
}
async function register(email: string, password: string) {
@@ -37,5 +35,5 @@ export const useAuthStore = defineStore('auth', () => {
return account.deleteSession('current').then((currentUser.value = null));
}
return { currentUser, register, login, googleLogin, logout, init, ready };
return { currentUser, register, login, googleLogin, logout, init };
});