mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +08:00
adding warning of insecure SECRET (#232)
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
Here is a full working example with JWT authentication to help get you started.
|
||||
|
||||
!!! warning
|
||||
Notice that **SECRET** should be changed to a strong passphrase.
|
||||
Insecure passwords may give attackers full access to your database.
|
||||
|
||||
``` py tab="SQLAlchemy"
|
||||
{!./src/full_sqlalchemy.py!}
|
||||
```
|
||||
|
||||
@@ -162,6 +162,10 @@ app.include_router(google_oauth_router, prefix="/auth/google", tags=["auth"])
|
||||
|
||||
### Full example
|
||||
|
||||
!!! warning
|
||||
Notice that **SECRET** should be changed to a strong passphrase.
|
||||
Insecure passwords may give attackers full access to your database.
|
||||
|
||||
``` py tab="SQLAlchemy"
|
||||
{!./src/oauth_full_sqlalchemy.py!}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user