Skip to content

Commit f38a0d6

Browse files
Add prod .env
1 parent f70df84 commit f38a0d6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

functions/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ __pycache__/
33

44
# Python virtual environment
55
venv/
6-
*.local
6+
.env.*

functions/auth/oauth_callback.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
default="https://today.hackncstate.org/auth",
2727
description="The frontend URI to redirect to after authentication is complete.",
2828
) # set to http://localhost:8080/auth in .env.local for local testing
29+
# set to https://hackncsu-today--dev-maisszg5.web.app/auth for dev deploys
2930

3031
SPREADSHEET_URL = StringParam(
3132
"REGISTRATION_SPREADSHEET_URL",
@@ -247,6 +248,7 @@ def _generate_login_token(uid: str, username: str) -> str:
247248
try:
248249
return auth.create_custom_token(uid, developer_claims=claims).decode("utf-8")
249250
except Exception as e:
251+
print(f"could not create custom token for user {uid}: {e}")
250252
raise ValueError("token_creation_failed")
251253

252254

0 commit comments

Comments
 (0)