Skip to content
rw3iss Auth

TwoFactorRequiredException

class rw3iss\AuthServer\Exceptions\TwoFactorRequiredException src/Exceptions/TwoFactorRequiredException.php ↗

Note: LoginFlow does NOT raise this by default. The server returns 401 with {requires_2fa: true} and the flow returns the response so the caller can prompt for the TOTP code. The exception class exists for middleware that prefers to model the case as a thrown error.