{"record":{"id":"36bd51499edd7a6d","repo":"filamentphp/filament","slug":"the-user-model-must-implement-the-filament-auth-m","errorCode":null,"errorMessage":"The user model must implement the [Filament\\Auth\\MultiFactor\\App\\Contracts\\HasAppAuthentication] interface to use app authentication.","messagePattern":"The user model must implement the \\[Filament\\\\Auth\\\\MultiFactor\\\\App\\\\Contracts\\\\HasAppAuthentication\\] interface to use app authentication\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/Auth/MultiFactor/App/AppAuthentication.php","lineNumber":72,"sourceCode":"    public static function make(): static\n    {\n        return app(static::class);\n    }\n\n    public function getId(): string\n    {\n        return 'app';\n    }\n\n    public function getLoginFormLabel(): string\n    {\n        return __('filament-panels::auth/multi-factor/app/provider.login_form.label');\n    }\n\n    public function isEnabled(Authenticatable $user): bool\n    {\n        if (! ($user instanceof HasAppAuthentication)) {\n            throw new LogicException('The user model must implement the [' . HasAppAuthentication::class . '] interface to use app authentication.');\n        }\n\n        return filled($user->getAppAuthenticationSecret());\n    }\n\n    public function getHolderName(HasAppAuthentication $user): string\n    {\n        return $user->getAppAuthenticationHolderName();\n    }\n\n    public function getSecret(HasAppAuthentication $user): string\n    {\n        $secret = $user->getAppAuthenticationSecret();\n\n        if (blank($secret)) {\n            throw new LogicException('The user does not have a app authentication secret.');\n        }\n","sourceCodeStart":54,"sourceCodeEnd":90,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/Auth/MultiFactor/App/AppAuthentication.php#L54-L90","documentation":"Error \"The user model must implement the [Filament\\Auth\\MultiFactor\\App\\Contracts\\HasAppAuthentication] interface to use app authentication.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/Auth/MultiFactor/App/AppAuthentication.php:72 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}