St.login and st.experimental_user - how to configure?

how to configure new features? i try this code but get error.

import streamlit as st
if st.experimental_user.is_logged_in:
st.write(st.experimental_user)

error: (…)
File “/usr/local/lib/python3.9/site-packages/streamlit/user_info.py”, line 72, in getattr
- redirect_uri is your app’s absolute URL with the pathname

streamlit version 1.42.1
my secrets.toml:
[auth]
redirect_uri = “http://my.site:8501/oauth2callback
cookie_secret = “some_secret”
client_id = “some_id.apps.googleusercontent.com”
client_secret = “some_google_secret”
server_metadata_url = (
https://accounts.google.com/.well-known/openid-configuration
)

1 Like

problem solved after updating streamlit to 1.43.2

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.