Spaces:
Sleeping
Sleeping
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.
|
| 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.
|
| 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()
|