We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1f4574 commit dc07c5dCopy full SHA for dc07c5d
.github/workflows/ci.yml
@@ -1,6 +1,11 @@
1
name: CI/CD
2
3
-on: [pull_request, push, workflow_dispatch]
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ workflow_dispatch:
9
10
jobs:
11
test:
supabase/client.py
@@ -232,9 +232,10 @@ def _get_token_header(self):
232
}
233
234
def _listen_to_auth_events(self, event: AuthChangeEvent, session):
235
- # reset postgrest instance on event change
236
- self._postgrest = None
237
- self._storage = None
+ if event == "SIGNED_IN" or event == "TOKEN_REFRESHED" or event == "SIGNED_OUT":
+ # reset postgrest and storage instance on event change
+ self._postgrest = None
238
+ self._storage = None
239
240
241
def create_client(
0 commit comments