We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c4ec79 commit 1c1f24bCopy full SHA for 1c1f24b
python-flask-directory-sync-example/app.py
@@ -17,7 +17,8 @@
17
if __name__ == "__main__":
18
socketio.run(app) # type: ignore
19
20
-workos_client = workos.WorkOSClient(api_key=os.getenv("WORKOS_API_KEY"), client_id=os.getenv("WORKOS_CLIENT_ID"))
+base_api_url = "http://localhost:7000/" if DEBUG else None
21
+workos_client = workos.WorkOSClient(api_key=os.getenv("WORKOS_API_KEY"), client_id=os.getenv("WORKOS_CLIENT_ID"), base_url=base_api_url)
22
directory_id = os.getenv("DIRECTORY_ID")
23
24
0 commit comments