Suddenly getting this weird user authentication error

I am using the latest versions of Python and Streamlit. I am getting this error when running my app:

File “/Users/------/Developer/------/frontend/Home.py”, line 40, in
if not check_perm() == “not_logged_in”:
^^^^^^^^^^^^File “/Users/------/Developer/--------/frontend/Home.py”, line 25, in check_perm
if st.user.is_logged_in:
^^^^^^^^^^^^^^^^^^^^File “/Users/----/Developer/------/.venv/lib/python3.12/site-packages/streamlit/user_info.py”, line 495, in getattr
raise AttributeError(f’st.experimental_user has no attribute “{key}”.')

This was not happening earlier, and I think I may have changed something. I switched my deployment to a different domain along with the google authentication redirect, so that is likely the cause. However I can’t figure out how to fix this, not sure why it’s using experimental_user when I’m using st.user

Any help would be appreciated