MENG21 commited on
Commit
4b44cce
·
1 Parent(s): abf0516
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -189,7 +189,7 @@ def main():
189
  # Function to handle OAuth callback
190
  def handle_callback():
191
  flow = create_flow()
192
- query_params = st.query_params()
193
  code = query_params.get("code", [None])[0]
194
  state = query_params.get("state", [None])[0]
195
 
@@ -233,7 +233,7 @@ def handle_callback():
233
 
234
  if __name__ == '__main__':
235
  logging.debug("Starting the application")
236
- query_params = st.query_params()
237
  if 'code' in query_params and 'state' in query_params:
238
  logging.debug("Authorization code and state found in query parameters")
239
  handle_callback()
 
189
  # Function to handle OAuth callback
190
  def handle_callback():
191
  flow = create_flow()
192
+ query_params = st.experimental_get_query_params()
193
  code = query_params.get("code", [None])[0]
194
  state = query_params.get("state", [None])[0]
195
 
 
233
 
234
  if __name__ == '__main__':
235
  logging.debug("Starting the application")
236
+ query_params = st.experimental_get_query_params()
237
  if 'code' in query_params and 'state' in query_params:
238
  logging.debug("Authorization code and state found in query parameters")
239
  handle_callback()