feat: return access_denied to the app when sign-in is cancelled

This commit is contained in:
Elias Schneider
2026-10-27 23:32:53 +01:00
parent 80b12b910a
commit 75e4ee624a
5 changed files with 116 additions and 9 deletions
+1 -4
View File
@@ -61,7 +61,6 @@
? 'verify'
: (currentStep ?? 'authenticate')
);
const cancelHref = document.referrer || '/';
async function useDifferentAccount() {
await webauthnService.logout();
@@ -257,9 +256,7 @@
>
{m.cancel()}
</Button>
{/if}
<Button variant="link" class={authQuietClass} href={cancelHref}>{m.cancel()}</Button>
</div>
</div>
{#if view === 'consent'}
<p class="text-control text-fg-muted mt-2 text-center">{m.auth_remove_access_anytime()}</p>