mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +08:00
Add important hint to documentation (#1149)
The documentation was missing a hint that the `AccessToken` ODM model has to be added to the `document_models` array argument for Beanie to know this model.
This commit is contained in:
@@ -55,6 +55,8 @@ We'll expand from the basic Beanie configuration.
|
||||
|
||||
2. We define a dependency to instantiate the `BeanieAccessTokenDatabase` class. Just like the user database adapter, it expects the `AccessToken` model class we defined above.
|
||||
|
||||
Don't forget to add the `AccessToken` ODM model to the `document_models` array in your Beanie initialization, [just like you did with the `User` model](../../databases/beanie.md#initialize-beanie)!
|
||||
|
||||
|
||||
### Strategy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user