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

Refactor Login to Support Manual Polling #307

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SuperLanceur
Copy link

@SuperLanceur SuperLanceur commented Jun 5, 2024

When using this as a library, it will allow a more flexible login process by separating the polling ID retrieval from the automatic polling. You can now call request_polling_id to get the polling ID, wait for the user to click the link in the email, and then call complete_login_with_polling_id with the polling ID to obtain the tokens. This change maintains backward compatibility by using these new methods within the existing login method.

Related to issue #306

@ahivert
Copy link
Owner

ahivert commented Aug 14, 2024

Thanks @SuperLanceur ! Can you update the readme with this new way of handling login ?

@SuperLanceur
Copy link
Author

Done @ahivert ! The README now explains how to login in this way.

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

Successfully merging this pull request may close these issues.

2 participants