0
0
switched/packages/frontend
Yuri Lee d8dd1683c9
Add Sign in with passkey Button (#14577)
* Sign in with passkey (PoC)

* 💄 Added "Login with Passkey" Button

* refactor: Improve error response when WebAuthn challenge fails

* signinResponse should be placed under the SigninWithPasskeyResponse object.

* Frontend fix

* Fix: Rate limiting key for passkey signin

Use specific rate limiting key: 'signin-with-passkey'  for passkey sign-in API to avoid collisions with signin rate-limit.

* Refactor: enhance Passkey sign-in flow and error handling

- Increased the rate limit for Passkey sign-in attempts to accommodate the two API calls needed per sign-in.
- Improved error messages and handling in both the `WebAuthnService` and the `SigninWithPasskeyApiService`, providing more context and better usability.
- Updated error messages to provide more specific and helpful details to the user.

These changes aim to enhance the Passkey sign-in experience by providing more robust error handling, improving security by limiting API calls, and delivering a more user-friendly interface.

* Refactor: Streamline 2FA flow and remove redundant Passkey button.

- Separate the flow of 1FA and 2FA.
- Remove duplicate passkey buttons

* Fix: Add error messages to MkSignin

* chore: Hide passkey button if the entered user does not use passkey login

* Update CHANGELOG.md

* Refactor: Rename functions and Add comments

* Update locales/ja-JP.yml

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>

* Fix: Update translation

- update index.d.ts
- update ko-KR.yml, en-US.yml
- Fix: Reflect Changed i18n key on MkSignin

---------

Co-authored-by: Squarecat-meow <kw7551@gmail.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-09-26 08:25:33 +09:00
..
.storybook fix(frontend): weird AP delivered chart in control panel (#14481) 2024-09-24 09:47:31 +09:00
.vscode test(#10336): add components/Mk[A-B].* stories (#10475) 2023-04-13 12:20:39 +09:00
@types feat(frontend): ノート・ユーザータイムライン埋め込み (#13929) 2024-09-09 20:57:36 +09:00
assets 🎨 2024-01-24 09:30:38 +09:00
lib (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
public (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
src Add Sign in with passkey Button (#14577) 2024-09-26 08:25:33 +09:00
test feat(frontend): ノート・ユーザータイムライン埋め込み (#13929) 2024-09-09 20:57:36 +09:00
.gitignore build(#10336): Storybook & Chromatic & msw (#10365) 2023-04-04 09:38:34 +09:00
eslint.config.js update deps (#14057) 2024-07-02 11:38:34 +09:00
package.json update deps (#14594) 2024-09-22 12:32:01 +09:00
tsconfig.json feat(frontend): ノート・ユーザータイムライン埋め込み (#13929) 2024-09-09 20:57:36 +09:00
vite.config.local-dev.ts feat(frontend): ノート・ユーザータイムライン埋め込み (#13929) 2024-09-09 20:57:36 +09:00
vite.config.ts feat(frontend): ノート・ユーザータイムライン埋め込み (#13929) 2024-09-09 20:57:36 +09:00
vite.json5.ts Fix type errors from vite.json5.ts (#9936) 2023-02-15 17:14:47 +09:00
vue-shims.d.ts Fix/vue import error on intellij (#12612) 2023-12-09 13:13:31 +09:00