From 9f20f3d0df8e74c00be7bcb8f960838904b69bb9 Mon Sep 17 00:00:00 2001 From: tannistha12 Date: Fri, 27 Jun 2025 12:29:56 +0530 Subject: [PATCH] docs: add note about explicit client.auth.sign_out() for proper shutdown (#926) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 7d0d6b3f..8088704b 100644 --- a/README.md +++ b/README.md @@ -259,6 +259,14 @@ data = supabase.storage.from_(bucket_name).move(old_file_path, new_file_path) 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. +## Important: Proper Client Shutdown + +To ensure the Supabase client terminates correctly and to prevent resource leaks, you **must** explicitly call: + +```python +client.auth.sign_out() +``` + ### Running Tests 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: