diff options
| author | zyoshoka <107108195+zyoshoka@users.noreply.github.com> | 2024-10-03 18:33:56 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-03 18:33:56 +0900 |
| commit | 2a4ab0e1878c7e45e939574cb4eb6c23f6371802 (patch) | |
| tree | a516d87574a18e8d0cd6a6f095fde29bd9f5ee42 /packages/backend | |
| parent | feat: サーバー初期設定時に初期パスワードを要求できる... (diff) | |
| download | sharkey-2a4ab0e1878c7e45e939574cb4eb6c23f6371802.tar.gz sharkey-2a4ab0e1878c7e45e939574cb4eb6c23f6371802.tar.bz2 sharkey-2a4ab0e1878c7e45e939574cb4eb6c23f6371802.zip | |
fix(misskey-js): type fixes related to signup and signin (#14679)
Diffstat (limited to 'packages/backend')
| -rw-r--r-- | packages/backend/src/server/api/ApiServerService.ts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/backend/src/server/api/ApiServerService.ts b/packages/backend/src/server/api/ApiServerService.ts index 709a044601..356e145681 100644 --- a/packages/backend/src/server/api/ApiServerService.ts +++ b/packages/backend/src/server/api/ApiServerService.ts @@ -118,6 +118,7 @@ export class ApiServerService { 'hcaptcha-response'?: string; 'g-recaptcha-response'?: string; 'turnstile-response'?: string; + 'm-captcha-response'?: string; } }>('/signup', (request, reply) => this.signupApiService.signup(request, reply)); @@ -126,17 +127,18 @@ export class ApiServerService { username: string; password: string; token?: string; - signature?: string; - authenticatorData?: string; - clientDataJSON?: string; - credentialId?: string; - challengeId?: string; + credential?: AuthenticationResponseJSON; + 'hcaptcha-response'?: string; + 'g-recaptcha-response'?: string; + 'turnstile-response'?: string; + 'm-captcha-response'?: string; }; }>('/signin', (request, reply) => this.signinApiService.signin(request, reply)); fastify.post<{ Body: { credential?: AuthenticationResponseJSON; + context?: string; }; }>('/signin-with-passkey', (request, reply) => this.signinWithPasskeyApiService.signin(request, reply)); |