Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up process of authentication #152

Open
Morgan-DCL opened this issue Apr 10, 2024 · 1 comment
Open

Speed up process of authentication #152

Morgan-DCL opened this issue Apr 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Morgan-DCL
Copy link

Hi! First off, thanks so much for this amazing feature!

I use it in every project I'm involved with. It’s easy to use and implement.

However, I’ve encountered an issue: there are no tips, workarounds, or even mentions regarding the delay when applying the login() function. The login process takes a few seconds.

I'm currently working on a project that requires multiple pages.
As explained, it's necessary to apply the login() method on all these pages to maintain the connection through the cookie. But these few seconds of wait every time we switch pages significantly slow down the process.

Is there a way to speed up this process?
How can I keep the cookie without having to apply login() every time?

To give more detail:
I have several pages where I only apply login() on the home page, then I simply pass on the authentication status.
If this status is False, I redirect the user to the home page.
I use other pages hidden with st_pages, accessible via query_params by clicking on a Linkcolumn from st.data_editor.
When I click, opening the hidden page and logging in takes time. Without logging in, the opening is instantaneous. Since I open and close these pages frequently, the cumulative waiting time becomes a problem...

Any ideas on how to work around these delays?

Thanks! Morgan

@mkhorasani mkhorasani added the enhancement New feature or request label Apr 10, 2024
@mkhorasani
Copy link
Owner

Dear @Morgan-DCL, thank you for reaching out! This is an issue raised by other developers as well and while I don't have a solution just yet, it is definitely something in my backlog and I hope to address it in a timely manner. Another feature that I'm currently working on is an un-rendered login method #149, which will smoothen re-authentication on sub-pages. In the meantime please stay tuned and hopefully, there will be a fix in the near future!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants