Brief 404 window before logging in
I am using Gitlab as an oauth provider and have it working successfully.
However when a use clicks login, they see a 404 window before it closes and continues with a successful log in.
Is it possible to serve them a more helpful message e.g. "Logging in, please wait.." message instead of this 404
Is this 404 coming from streamlit itself or can I specify what gets served at the callback URI within streamlit-oauth.
Update: I've fixed the 404 error by fixing the URL as it was missing a slug but not I get a permission denied error when streamlit attempts to access the frontend/dist folder
`Permission denied: "C:\path\to\streamlit_oauth\front-end\dist'
It appears that in some cases, the component request handler is handed a directory path instead of the path to dist/index.html. I can bodge a fix in component_request_handler by checking if it endswith("frontend\dist") and appending index.html on the end of it, but of course this isn't a real fix.
Any idea why that function sometimes reads .html file but in this instance isn't.
If I make a blanket fix to the "init.py" file by changing the parameter passed to declare_component(), it fails on the same function by trying to read "frontend\dist\index.htmlindex.html" so the path parameter works as expected most of the time.