-
Notifications
You must be signed in to change notification settings - Fork 0
Sync homepage directive with JWT path #187
Comments
With the API moving to its own repo and being installed as a standalone package, this should be managed via environment variable files. Does the dotenv support loading files from specific paths? If so, the same environment variable from the frontend can be used to sync this together. A potential fallback is that this configuration is managed through deployment scripts. |
dotenvPulled directly from https://pypi.org/project/python-dotenv/ :
It looks like when calling load_dotenv, it is possible to specify the path to the This particular example uses Possible issuesThere will have to be |
Using dotenv in setup.py isn't reliable because dotenv isn't part of the standard library. Instead, the configuration options for the API should be exposed in a similar fashion to Flask apps. dotenv can be used by the client to set these exposed values. |
Moved to ECN/webqueue2-api#14 |
#171 will implement arbitrary subdirectory loading by prepending links and routes with the value from the
homepage
directive inpackage.json
at build time.For refresh tokens to work in arbitrary subfolders, the
JWT_REFRESH_COOKIE_PATH
of Flask JWT Extended needs to contain the same value as thehomepage
directive. Otherwise, users can login but cannot refresh their tokens.The text was updated successfully, but these errors were encountered: