{"record":{"id":"7d13fee31b6bc215","repo":"filamentphp/filament","slug":"the-user-does-not-have-a-app-authentication-secret","errorCode":null,"errorMessage":"The user does not have a app authentication secret.","messagePattern":"The user does not have a app authentication secret\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/Auth/MultiFactor/App/AppAuthentication.php","lineNumber":88,"sourceCode":"    {\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\n        return $secret;\n    }\n\n    public function saveSecret(HasAppAuthentication $user, #[SensitiveParameter] ?string $secret): void\n    {\n        $user->saveAppAuthenticationSecret($secret);\n    }\n\n    /**\n     * @return array<string>\n     */\n    public function getRecoveryCodes(HasAppAuthenticationRecovery $user): array\n    {\n        $codes = $user->getAppAuthenticationRecoveryCodes();\n\n        if (blank($codes)) {","sourceCodeStart":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/Auth/MultiFactor/App/AppAuthentication.php#L70-L106","documentation":"Error \"The user does not have a app authentication secret.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/Auth/MultiFactor/App/AppAuthentication.php:88 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"}