Hosted streamlit OAuth

Hi, I can use OAuth locally to access APIs that require user authentication but when I host the app online I don’t think I can use the same process to authenticate the app. Locally I can use a redirect URL but not when the app is hosted on Heroku.

Is this is something that I can do with streamlit?