Skip to content

Commit

Permalink
refactor app.config
Browse files Browse the repository at this point in the history
  • Loading branch information
Oloruntobi Olurombi committed Sep 12, 2024
1 parent ac4e4b6 commit 38be32e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import secrets

app = Flask(__name__)
app.config['SECRET_KEY'] = os.getenv('SECRET_KEY', secrets.token_hex(16))


app.config['SECRET_KEY'] = os.getenv('SECRET_KEY', secrets.token_urlsafe(32))

csrf = CSRFProtect(app)

Expand Down

0 comments on commit 38be32e

Please sign in to comment.