Add Comments

This commit is contained in:
kakkokari-gtyih 2024-10-03 20:39:15 +09:00
parent adabff708d
commit e91fc626c6
1 changed files with 9 additions and 0 deletions

View File

@ -29,6 +29,15 @@ import { SigninService } from './SigninService.js';
import type { AuthenticationResponseJSON, PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
import type { FastifyReply, FastifyRequest } from 'fastify';
/**
* next
*
* - `captcha`: CAPTCHAを求める
* - `password`:
* - `totp`:
* - `passkey`: WebAuthn認証を求めるWebAuthnに対応していないブラウザの場合はワンタイムパスワード
*/
type SigninErrorResponse = {
id: string;
next?: 'captcha' | 'password' | 'totp';