File tree Expand file tree Collapse file tree 6 files changed +6
-12
lines changed
python-flask-admin-portal-example
python-flask-audit-logs-example
python-flask-directory-sync-example
python-flask-magic-link-example Expand file tree Collapse file tree 6 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 7
7
8
8
9
9
# Flask Setup
10
- DEBUG = False
11
10
app = Flask (__name__ )
12
11
lucide = Lucide (app )
13
12
14
13
# WorkOS Setup
15
- base_api_url = "http://localhost:7000/" if DEBUG else None
14
+ base_api_url = os . getenv ( "WORKOS_BASE_API_URL" )
16
15
workos_client = workos .WorkOSClient (
17
16
api_key = os .getenv ("WORKOS_API_KEY" ),
18
17
client_id = os .getenv ("WORKOS_CLIENT_ID" ),
Original file line number Diff line number Diff line change 11
11
12
12
13
13
# Flask Setup
14
- DEBUG = False
15
14
app = Flask (__name__ )
16
15
app .secret_key = os .getenv ("APP_SECRET_KEY" )
17
16
18
17
lucide = Lucide (app )
19
18
20
19
21
20
# WorkOS Setup
22
- base_api_url = "http://localhost:7000/" if DEBUG else None
21
+ base_api_url = os . getenv ( "WORKOS_BASE_API_URL" )
23
22
workos_client = workos .WorkOSClient (
24
23
api_key = os .getenv ("WORKOS_API_KEY" ),
25
24
client_id = os .getenv ("WORKOS_CLIENT_ID" ),
Original file line number Diff line number Diff line change 6
6
from flask_lucide import Lucide
7
7
8
8
9
- DEBUG = False
10
9
app = Flask (__name__ )
11
10
12
11
lucide = Lucide (app )
17
16
if __name__ == "__main__" :
18
17
socketio .run (app ) # type: ignore
19
18
20
- base_api_url = "http://localhost:7000/" if DEBUG else None
19
+ base_api_url = os . getenv ( "WORKOS_BASE_API_URL" )
21
20
workos_client = workos .WorkOSClient (api_key = os .getenv ("WORKOS_API_KEY" ), client_id = os .getenv ("WORKOS_CLIENT_ID" ), base_url = base_api_url )
22
21
directory_id = os .getenv ("DIRECTORY_ID" )
23
22
Original file line number Diff line number Diff line change 4
4
import workos
5
5
6
6
# Flask Setup
7
- DEBUG = False
8
7
app = Flask (__name__ )
9
8
10
9
# WorkOS Setup
11
- base_api_url = "http://localhost:7000/" if DEBUG else None
10
+ base_api_url = os . getenv ( "WORKOS_BASE_API_URL" )
12
11
workos_client = workos .WorkOSClient (
13
12
api_key = os .getenv ("WORKOS_API_KEY" ),
14
13
client_id = os .getenv ("WORKOS_CLIENT_ID" ),
Original file line number Diff line number Diff line change 5
5
from flask_lucide import Lucide
6
6
7
7
# Flask Setup
8
- DEBUG = False
9
8
app = Flask (__name__ )
10
9
app .secret_key = os .getenv ("APP_SECRET_KEY" )
11
10
lucide = Lucide (app )
12
11
13
12
# WorkOS Setup
14
- base_api_url = "http://localhost:7000/" if DEBUG else None
13
+ base_api_url = os . getenv ( "WORKOS_BASE_API_URL" )
15
14
workos_client = workos .WorkOSClient (
16
15
api_key = os .getenv ("WORKOS_API_KEY" ),
17
16
client_id = os .getenv ("WORKOS_CLIENT_ID" ),
Original file line number Diff line number Diff line change 5
5
6
6
7
7
# Flask Setup
8
- DEBUG = False
9
8
app = Flask (__name__ )
10
9
app .secret_key = os .getenv ("APP_SECRET_KEY" )
10
+ base_api_url = os .getenv ("WORKOS_BASE_API_URL" )
11
11
12
12
# WorkOS Setup
13
- base_api_url = "http://localhost:7000/" if DEBUG else None
14
13
workos_client = workos .WorkOSClient (
15
14
api_key = os .getenv ("WORKOS_API_KEY" ),
16
15
client_id = os .getenv ("WORKOS_CLIENT_ID" ),
You can’t perform that action at this time.
0 commit comments