Skip to content

Commit f6e031a

Browse files
authored
Update add_usernames.py
1 parent fd2d579 commit f6e031a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compose/scripts/add_usernames.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
from auth0.v3.management.users import Users
22
from neurosynth_compose.resources.users import User
3+
from flask import current_app
34

45
TOKEN = "INSERT TOKEN"
56

67

7-
user_endpoint = Users(domain="neurosynth-staging.us.auth0.com", token=TOKEN)
8+
user_endpoint = Users(domain=current_app.config["AUTH0_BASE_URL"].removeprefix("https://"), token=TOKEN)
89

910
result = user_endpoint.list(per_page=100)["users"]
1011

0 commit comments

Comments
 (0)