Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
Fix a wierd bug related to vimalloc/flask-jwt-extended#86
Browse files Browse the repository at this point in the history
  • Loading branch information
sreecodeslayer committed Dec 6, 2018
1 parent 68980ed commit e720036
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contacts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
class Development:
DEBUG = True
SECRET_KEY = "changeme"

# Skipping the below configuration would trigger a 500
# on bad api request with no auth headers case
# Read more at flask jwt extended issue 86
# https://github.com/vimalloc/flask-jwt-extended/issues/86
PROPAGATE_EXCEPTIONS = True

JWT_ACCESS_TOKEN_EXPIRES = False

SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres'\
Expand Down

0 comments on commit e720036

Please sign in to comment.