paricafe/packages/backend/src/server
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
..
api Add Sign in with passkey Button (#14577) 2024-09-26 08:25:33 +09:00
assets なんかもうめっちゃ変えた 2022-09-18 03:27:08 +09:00
oauth (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
web fix(backend): embedの動作に必要な値を復活させる (#14633) 2024-09-25 19:27:50 +09:00
ActivityPubServerService.ts revert 5f88d56d96 2024-07-20 21:33:20 +09:00
FileServerService.ts update deps (#14594) 2024-09-22 12:32:01 +09:00
HealthServerService.ts Misskey® Reactions Buffering Technology™ (#14579) 2024-09-20 21:03:53 +09:00
NodeinfoServerService.ts fix(backend): memory leak in memory caches (#14363) 2024-08-18 13:34:01 +09:00
ServerModule.ts Add Sign in with passkey Button (#14577) 2024-09-26 08:25:33 +09:00
ServerService.ts refactor/perf(backend): provide metadata statically (#14601) 2024-09-22 12:53:13 +09:00
WellKnownServerService.ts (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00