update env vars for redis and jwt

This commit is contained in:
Jakub Miazek
2023-07-24 12:43:26 +02:00
parent f160dac370
commit 95ed21bdd5
3 changed files with 21 additions and 3 deletions

View File

@@ -73,6 +73,16 @@ Below steps were done to integrate [rich](https://github.com/Textualize/rich) in
### User authentication with JWT and Redis as token storage :lock: :key:
#### Generate Fernet key for storing password in db
```python
In [1]: from cryptography.fernet import Fernet
In [2]: Fernet.generate_key()
Out[2]: b'Ms1HSn513x0_4WWFBQ3hYPDGAHpKH_pIseC5WwqyO7M='
```
Save the key in .secrets as FERNET_KEY
### Local development with poetry