From 34a3ddfe8b9343c15b6959338a353aeb5e530b70 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Thu, 7 Dec 2023 10:00:59 +0000 Subject: [PATCH] Update to use query property of the request method --- gotrue/_async/gotrue_admin_api.py | 3 ++- gotrue/_sync/gotrue_admin_api.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gotrue/_async/gotrue_admin_api.py b/gotrue/_async/gotrue_admin_api.py index e7c8d250..b4eb655d 100644 --- a/gotrue/_async/gotrue_admin_api.py +++ b/gotrue/_async/gotrue_admin_api.py @@ -46,7 +46,8 @@ async def sign_out(self, jwt: str, scope: SignOutScope = "global") -> None: """ return await self._request( "POST", - f"logout?scope={scope}", + "logout", + query={"scope": scope}, jwt=jwt, no_resolve_json=True, ) diff --git a/gotrue/_sync/gotrue_admin_api.py b/gotrue/_sync/gotrue_admin_api.py index ebe54a08..9ae7f9c8 100644 --- a/gotrue/_sync/gotrue_admin_api.py +++ b/gotrue/_sync/gotrue_admin_api.py @@ -46,7 +46,8 @@ def sign_out(self, jwt: str, scope: SignOutScope = "global") -> None: """ return self._request( "POST", - f"logout?scope={scope}", + "logout", + query={"scope": scope}, jwt=jwt, no_resolve_json=True, )