{#if loading}
{$_('common.loading')}
{:else if error}
{$_('oauth.error.title')}
{error}
navigate('/login')}> {$_('verify.backToLogin')}
{:else if consentData}
{#if consentData.logo_uri}
{/if}
{consentData.client_name || $_('oauth.consent.title')}
{$_('oauth.consent.appWantsAccess', { values: { app: '' } })}
{#if consentData.client_uri}
{consentData.client_uri}
{/if}
{$_('oauth.consent.signingInAs')}
{consentData.did}
{$_('oauth.consent.permissionsRequested')}
{#each Object.entries(scopeGroups) as [category, scopes]}
{category}
{#each scopes as scope}
handleScopeToggle(scope.scope)} />
{scope.display_name}
{scope.description}
{#if scope.required}
{$_('oauth.consent.required')}
{/if}
{/each}
{/each}
{$_('oauth.consent.rememberChoiceLabel')}
{$_('oauth.consent.deny')}
{submitting ? $_('oauth.consent.authorizing') : $_('oauth.consent.authorize')}
{/if}