Skip to content

Commit 1c1f24b

Browse files
committed
Add debug base url to dsync app
1 parent 2c4ec79 commit 1c1f24b

File tree

1 file changed

+2
-1
lines changed
  • python-flask-directory-sync-example

1 file changed

+2
-1
lines changed

python-flask-directory-sync-example/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
if __name__ == "__main__":
1818
socketio.run(app) # type: ignore
1919

20-
workos_client = workos.WorkOSClient(api_key=os.getenv("WORKOS_API_KEY"), client_id=os.getenv("WORKOS_CLIENT_ID"))
20+
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)
2122
directory_id = os.getenv("DIRECTORY_ID")
2223

2324

0 commit comments

Comments
 (0)