mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-29 20:19:04 +01:00
feat: return access_denied to the app when sign-in is cancelled
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user