api refactor / registration tests

This commit is contained in:
Hayden 2022-10-03 20:09:53 -08:00
parent a67316a889
commit 505099ee26
12 changed files with 120 additions and 33 deletions

View file

@ -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) {