Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 34a3ddf

Browse files
committed
Update to use query property of the request method
1 parent 3818dba commit 34a3ddf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

gotrue/_async/gotrue_admin_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ async def sign_out(self, jwt: str, scope: SignOutScope = "global") -> None:
4646
"""
4747
return await self._request(
4848
"POST",
49-
f"logout?scope={scope}",
49+
"logout",
50+
query={"scope": scope},
5051
jwt=jwt,
5152
no_resolve_json=True,
5253
)

gotrue/_sync/gotrue_admin_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def sign_out(self, jwt: str, scope: SignOutScope = "global") -> None:
4646
"""
4747
return self._request(
4848
"POST",
49-
f"logout?scope={scope}",
49+
"logout",
50+
query={"scope": scope},
5051
jwt=jwt,
5152
no_resolve_json=True,
5253
)

0 commit comments

Comments
 (0)