Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jun 12, 2024
1 parent 9c14380 commit 2c5fda5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/Auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def google_sso_button():
use_container_width=True,
pkce=None,
)
logging.info(result)
logging.info(f"Result: {result}")
if result and "code" in result:
# Send google auth access_token and refresh_token to MagicalAuth
response = requests.post(
Expand All @@ -72,8 +72,10 @@ def google_sso_button():
)
else:
st.error(url)
logging.error(f"Error with Google SSO: {url}")
else:
st.error(response.json())
st.error(response.text)
logging.error(f"Error with Google SSO: {response.text}")


def get_user():
Expand Down

0 comments on commit 2c5fda5

Please sign in to comment.