Skip to content

Commit

Permalink
Add loading screen when FIDO challenge is loading
Browse files Browse the repository at this point in the history
  • Loading branch information
vicr123 committed Oct 7, 2024
1 parent 91b0aa5 commit fa7e1f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Parlance.ClientApp/src/helpers/TokenAcquisitionSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ export class TokenAcquisitionSession {
}

async attemptFido2Login() {
Modal.mount(<LoginSecurityKeyModal />);

Modal.mount(<LoadingModal />);
let details: TokenResponseFido;
try {
details = await this.updateFidoToken();
Expand All @@ -188,6 +187,8 @@ export class TokenAcquisitionSession {
return;
}

Modal.mount(<LoginSecurityKeyModal />);

//Perform webauthn authentication
// noinspection ExceptionCaughtLocallyJS
try {
Expand Down

0 comments on commit fa7e1f3

Please sign in to comment.