-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
auth functions create thread that prevents exit #451
Comments
use |
That ended the thread. Thank you @NeoFoxxo! |
The underlying problem here is, that there is by default a Timer-Thread refreshing the access token. This thread is stopped when you call supabase = create_client(
supabase_url=...,
supabase_key=...,
options=ClientOptions(auto_refresh_token=False),
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
After calling supabase.auth.set_session a thread named "Thread-6" gets created which prevents my program from exiting.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The process ends.
Desktop (please complete the following information):
Additional context
I'm just using supabase 1.0.3 in a .py file on Windows 10 with Python 3.10.6. I saw supabase.auth has a close function. I saw that calls close on a variable called http_client. I was hoping that would stop the thread but it didn't seem to have an effect.
The text was updated successfully, but these errors were encountered: