I have correctly configured the relevant information in Supabase and Google Cloud.
Currently, it is possible to click on the URL( https://nhwaaomjmukomvvqcjfu.supabase.co/auth/v1/authorize?provider=google )
it can jump to the Google login authorization interface. However, the parameter information in the browser address bar cannot be obtained.
I have reviewed some documents and used st.experimental_get_query_params() method can obtain parameters from the browser address bar. But my code can only obtain an empty dictionary and cannot obtain any parameter information.
This is my code:
google_login = st.button('google login')
if google_login:
user.login_in_with_google()
login_in_with_google().The code for the function is as follows:
def login_in_with_google():
data = supabase.auth.sign_in_with_oauth(
{
"provider": 'google',
}
)
res = webbrowser.open(data.url)
if res:
params = st.experimental_get_query_params()
return params
Can someone tell me how to do it? My goal is to obtain the parameter information in the address bar after Google authorization is successful, and then use jwt to parse it and store it in the Supabase database.