feat: reports; improved+simplifed modals; extractError funcction;

refactor: change jwt claims to lowercase; use response dtos for sensitive data
fix: nullify user on token clears; change appsettings.dev View_Internal_API_Key
This commit is contained in:
2026-01-14 19:41:52 -05:00
parent 1da88dba4e
commit 67447d51ae
39 changed files with 2291 additions and 454 deletions
@@ -1,6 +1,7 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { setTokens, startTokenRefreshInterval } from '$lib/utils/auth';
import { extractError } from '$lib/utils/misc';
import { Check, X } from '@lucide/svelte';
import { slide, fade } from 'svelte/transition';
import { resolve } from '$app/paths';
@@ -103,12 +104,12 @@
const messages = Object.values(resData.errors).flat();
error = messages.join('\n');
} else {
if (resData.message === 'Verification failed.') {
error = extractError(resData) || 'Registration failed. Please try again.';
if (error === 'Verification failed.') {
if (window.turnstile) {
window.turnstile.reset();
}
}
error = resData.message || 'Registration failed. Please try again.';
}
}
loading = false;