Skip to content

Commit

Permalink
add button
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jun 11, 2024
1 parent e3c737f commit b8d6b9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GoogleSSO.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
class GoogleSSO:
def __init__(
self,
access_token, # Will come from db stored for user
refresh_token, # Will come from db stored for user
access_token, # Comes from Google OAuth and stored in db
refresh_token, # Comes from Google OAuth and stored in db
):
self.refresh_token = refresh_token
self.access_token = access_token
Expand Down
2 changes: 2 additions & 0 deletions components/Auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def get_user():
email = st.text_input("Email")
otp = st.text_input("MFA Token")
login_button = st.form_submit_button("Login")
st.divider()
google_sso_button(redirect_uri=auth_uri)
if login_button:
auth_response = requests.post(
f"{auth_uri}/v1/login",
Expand Down

0 comments on commit b8d6b9b

Please sign in to comment.