-
-
Notifications
You must be signed in to change notification settings - Fork 279
sign_in_with_password locking python unittest #844
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
Comments
You just need to sign_out in order for it to not be locked. This has been discussed in a past issue. The discussion here with one solution of calling |
Here's my use case: I'm trying to pass the user's JWT token from a Javascript frontend to a Python backend so that I can log the user in on the backend and perform RLS-protected operations. I'm using I mean, it might just be that this is a bad approach. I suspect that signout on the backend will sign the user out from the frontend too, although I've not even gotten that far in my testing due to this Pytest issue. So at the moment, I'm leaning toward dropping the whole idea of passing the session from frontend to backend like this. But if there's a way to clean up the threads associated with |
@chriscarrollsmith Did you try the other solution of passing the config property on initiating the client in Python? Also @chriscarrollsmith are you the same person as @FelipeNFL? |
Thanks; I somehow missed that in your reply above and will give it a try. (No, I am not the same person as Felipe.) |
Closing out as no reply from OP for more than two months. |
Bug report
Describe the bug
I'm using the Supabase Client Python with the unittest library to make some asserts in a data transform. But, if when I use the
sign_in_with_password()
method in the setUpClass to log in the project, the terminal is locked after the tests execution. The process is not kill and the Ctrl+C doesn't work too. I tried to callclose()
in the auth, but the problem persists. It appears there to be some deadlock.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
sign_in_with_passwod()
in the setUpClassExpected behavior
The process needs to be killed when the test finishes.
System information
The text was updated successfully, but these errors were encountered: