1
0
forked from mirror/misskey
mi.moris.day/packages/backend/src
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
..
@types revert 5f88d56d96 2024-07-20 21:33:20 +09:00
boot lint fixes 2024-06-06 11:40:11 +09:00
core Add Sign in with passkey Button (#14577) 2024-09-26 08:25:33 +09:00
daemons refactor/perf(backend): provide metadata statically (#14601) 2024-09-22 12:53:13 +09:00
misc update deps (#14594) 2024-09-22 12:32:01 +09:00
models enhance: ユーザーコンテンツのインポート操作の実行可否をロールで制御できるように (#14583) 2024-09-20 21:04:58 +09:00
queue Fix: Continue importing from file if single emoji import fails (#14461) 2024-09-24 09:50:00 +09:00
server Add Sign in with passkey Button (#14577) 2024-09-26 08:25:33 +09:00
config.ts Misskey® Reactions Buffering Technology™ (#14579) 2024-09-20 21:03:53 +09:00
const.ts Misskey® Reactions Buffering Technology™ (#14579) 2024-09-20 21:03:53 +09:00
decorators.ts refactor(backend): use Reflet for autobind deco (#14482) 2024-09-15 17:43:24 +09:00
di-symbols.ts refactor/perf(backend): provide metadata statically (#14601) 2024-09-22 12:53:13 +09:00
env.ts
global.d.ts
GlobalModule.ts fix(backend): RBTの修正 (#14621) 2024-09-24 18:29:02 +09:00
logger.ts refactor(backend): remove unused logger option 2024-06-06 10:01:50 +09:00
MainModule.ts
NestLogger.ts lint fixes 2024-06-06 11:40:11 +09:00
postgres.ts feat: 通報を受けた際にメールまたはWebhookで通知を送出出来るようにする (#13758) 2024-06-08 15:34:19 +09:00
types.ts enhance(backend): ページ、ギャラリー、Playのモデレーション強化 (#13523) 2024-08-17 15:01:08 +09:00