Skip to content

Commit

Permalink
Don't initialize jwt non-locally
Browse files Browse the repository at this point in the history
  • Loading branch information
chouinar committed Nov 20, 2024
1 parent 5b8dab5 commit f40f286
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ def create_app() -> APIFlask:
register_index(app)
register_search_client(app)

# TODO - shouldn't do this in envs we don't yet have configured for auth
initialize_jwt_auth()
# TODO - once we merge the auth changes for setting up the initial route
# will reuse the config from it, for now we'll do this a bit hacky
# This cannot be removed non-locally until we setup RSA keys for non-local envs
if os.getenv("ENVIRONMENT") == "local":
initialize_jwt_auth()

return app

Expand Down

0 comments on commit f40f286

Please sign in to comment.