krishnadhulipalla commited on
Commit
0501e91
·
1 Parent(s): 1472da5

updated api paths

Browse files
Files changed (1) hide show
  1. backend/api.py +2 -1
backend/api.py CHANGED
@@ -70,9 +70,10 @@ def _client_config():
70
  }
71
  }
72
 
73
- @api.get("api/oauth/google/start")
74
  def oauth_start():
75
  # optional CSRF protection
 
76
  state = secrets.token_urlsafe(16)
77
  flow = Flow.from_client_config(_client_config(), scopes=SCOPES, redirect_uri=REDIRECT_URI)
78
  auth_url, _ = flow.authorization_url(
 
70
  }
71
  }
72
 
73
+ @api.get("oauth/google/start")
74
  def oauth_start():
75
  # optional CSRF protection
76
+ log.info("Starting Google OAuth flow")
77
  state = secrets.token_urlsafe(16)
78
  flow = Flow.from_client_config(_client_config(), scopes=SCOPES, redirect_uri=REDIRECT_URI)
79
  auth_url, _ = flow.authorization_url(