mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-20 01:20:29 +00:00
api refactor / registration tests
This commit is contained in:
parent
a67316a889
commit
505099ee26
12 changed files with 120 additions and 33 deletions
|
@ -1,6 +1,6 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { useLocalStorage } from "@vueuse/core";
|
||||
import { UserApi } from "~~/lib/api/user";
|
||||
import { UserClient } from "~~/lib/api/user";
|
||||
import { UserOut } from "~~/lib/api/types/data-contracts";
|
||||
|
||||
export const useAuthStore = defineStore("auth", {
|
||||
|
@ -23,7 +23,7 @@ export const useAuthStore = defineStore("auth", {
|
|||
},
|
||||
},
|
||||
actions: {
|
||||
async logout(api: UserApi) {
|
||||
async logout(api: UserClient) {
|
||||
const result = await api.logout();
|
||||
|
||||
if (result.error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue