diff --git a/web/src/elements/stages/authenticator_validate/AuthenticatorValidateStage.ts b/web/src/elements/stages/authenticator_validate/AuthenticatorValidateStage.ts
index e9acacf76..a342c9c28 100644
--- a/web/src/elements/stages/authenticator_validate/AuthenticatorValidateStage.ts
+++ b/web/src/elements/stages/authenticator_validate/AuthenticatorValidateStage.ts
@@ -119,13 +119,15 @@ export class AuthenticatorValidateStage extends BaseStage implements StageHost {
return html`
+ .deviceChallenge=${this.selectedDeviceChallenge}
+ .showBackButton=${(this.challenge?.device_challenges.length || []) > 1}>
`;
case DeviceClasses.WEBAUTHN:
return html`
+ .deviceChallenge=${this.selectedDeviceChallenge}
+ .showBackButton=${(this.challenge?.device_challenges.length || []) > 1}>
`;
}
}
diff --git a/web/src/elements/stages/authenticator_validate/AuthenticatorValidateStageCode.ts b/web/src/elements/stages/authenticator_validate/AuthenticatorValidateStageCode.ts
index 712c9677b..a54799627 100644
--- a/web/src/elements/stages/authenticator_validate/AuthenticatorValidateStageCode.ts
+++ b/web/src/elements/stages/authenticator_validate/AuthenticatorValidateStageCode.ts
@@ -14,6 +14,9 @@ export class AuthenticatorValidateStageWebCode extends BaseStage {
@property({ attribute: false })
deviceChallenge?: DeviceChallenge;
+ @@property({ type: Boolean })
+ showBackButton = false;
+
static get styles(): CSSResult[] {
return COMMON_STYLES;
}
@@ -61,14 +64,16 @@ export class AuthenticatorValidateStageWebCode extends BaseStage {
`;
}
diff --git a/web/src/elements/stages/authenticator_validate/AuthenticatorValidateStageWebAuthn.ts b/web/src/elements/stages/authenticator_validate/AuthenticatorValidateStageWebAuthn.ts
index 276352e15..089e47a73 100644
--- a/web/src/elements/stages/authenticator_validate/AuthenticatorValidateStageWebAuthn.ts
+++ b/web/src/elements/stages/authenticator_validate/AuthenticatorValidateStageWebAuthn.ts
@@ -21,6 +21,9 @@ export class AuthenticatorValidateStageWebAuthn extends BaseStage {
@property()
authenticateMessage = "";
+ @property({type: Boolean})
+ showBackButton = false;
+
static get styles(): CSSResult[] {
return COMMON_STYLES;
}
@@ -98,14 +101,16 @@ export class AuthenticatorValidateStageWebAuthn extends BaseStage {
`;
}