Skip to content

TwoFactorRequiredException

class Vendidit\AuthServer\Exceptions\TwoFactorRequiredException Source: 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.