Skip to content

Commit b657308

Browse files
authored
docs: add note about explicit client.auth.sign_out() for proper shutdown (#926) (#1163)
1 parent aef197f commit b657308

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,14 @@ data = supabase.storage.from_(bucket_name).move(old_file_path, new_file_path)
259259

260260
Contributing to the Python libraries are a great way to get involved with the Supabase community. Reach out to us on [Discord](https://discord.supabase.com) or on our [Github Discussions](https://github.com/orgs/supabase/discussions) page if you want to get involved.
261261

262+
## Important: Proper Client Shutdown
263+
264+
To ensure the Supabase client terminates correctly and to prevent resource leaks, you **must** explicitly call:
265+
266+
```python
267+
client.auth.sign_out()
268+
```
269+
262270
### Running Tests
263271

264272
Currently, the test suites are in a state of flux. We are expanding our clients' tests to ensure things are working, and for now can connect to this test instance, which is populated with the following table:

0 commit comments

Comments
 (0)