add / edit / delete user warrens

This commit is contained in:
2025-07-21 19:27:41 +02:00
parent 50e066f794
commit 2c26002507
86 changed files with 2197 additions and 300 deletions

View File

@@ -5,9 +5,10 @@ export async function getAuthSessionData(params: {
sessionType: AuthSessionType;
sessionId: string;
}): Promise<
{ success: true; user: AuthUser; expiresAt: number } | { success: false }
| { success: true; user: AuthUser; expiresAt: number }
| { success: false; code: number }
> {
const { data, status } = await useFetch<
const { data, error, status } = await useFetch<
ApiResponse<{
user: AuthUser;
expiresAt: number;
@@ -23,6 +24,7 @@ export async function getAuthSessionData(params: {
if (status.value !== 'success' || data.value == null) {
return {
success: false,
code: error.value?.statusCode ?? 400,
};
}