stable

Clone or download

Read-only

feat: Add context to webauthn modal error message

How to test: When there is an issue with the POST authentication challenge endpoint (to test, make it return 400 Bad request, for example), the user account page will show an error message with a translated message for context: There was a problem while checking the registered passkeys of user. Previously, only the error code was shown in the alert (Bad Request), which was puzzling for the end-user (which request ?) No other functional change expected in the Keys & Tokens page. part of story #31177 check my identity when doing a risky action Change-Id: Ief52ef8dd72a7ca443aecd858852fe2e9a37482c

Modified Files

Name
M build-manifest.json +4 −0 Go to diff View file
M lib/frontend/webauthn/package.json +1 −0 Go to diff View file
M lib/frontend/webauthn/pnpm-lock.yaml +3 −0 Go to diff View file
M lib/frontend/webauthn/src/authenticate.test.ts +175 −54 Go to diff View file
M lib/frontend/webauthn/src/authenticate.ts +12 −2 Go to diff View file
A lib/frontend/webauthn/src/faults/CouldNotCheckRegisteredPasskeysFault.ts +25 −0 Go to diff View file
A lib/frontend/webauthn/src/faults/UserHasNoRegisteredPasskeyFault.ts +25 −0 Go to diff View file
M lib/frontend/webauthn/src/main.ts +6 −3 Go to diff View file
R lib/frontend/webauthn/tests/stubs/AuthenticationResponseJSON.ts Go to diff View file
M src/scripts/account/package.json +3 −0 Go to diff View file
M src/scripts/account/pnpm-lock.yaml +9 −0 Go to diff View file
A src/scripts/account/po/fr_FR.po +18 −0 Go to diff View file
M src/scripts/account/src/keys-tokens.ts +110 −97 Go to diff View file
M src/scripts/account/webpack.common.js +2 −0 Go to diff View file