mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
docs: Document app authentication cache requirements (#20474)
* docs: Document app authentication cache requirements Co-authored-by: Amp <amp@ampcode.com> * docs: Use warning for app authentication cache requirements Co-authored-by: Amp <amp@ampcode.com> --------- Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -82,6 +82,10 @@ public function panel(Panel $panel): Panel
|
||||
}
|
||||
```
|
||||
|
||||
<Aside variant="warning">
|
||||
To prevent the same app authentication code from being accepted more than once, use a default cache store that supports atomic locks, such as the database or Redis cache driver. All application servers must use the same cache backend. With other cache configurations, concurrent requests may accept the same code more than once.
|
||||
</Aside>
|
||||
|
||||
### Setting up app recovery codes
|
||||
|
||||
If your users lose access to their two-factor authentication app, they will be unable to sign in to your application. To prevent this, you can generate a set of recovery codes that users can use to sign in if they lose access to their two-factor authentication app.
|
||||
|
||||
Reference in New Issue
Block a user