From efe4bd8f6765e6a0d100670587b90c16a9f11032 Mon Sep 17 00:00:00 2001 From: Paulo Coutinho Date: Fri, 10 Feb 2023 13:44:08 -0300 Subject: [PATCH] fix auth (#20) --- pocketbase/client.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pocketbase/client.py b/pocketbase/client.py index c0c24f1..b27e656 100644 --- a/pocketbase/client.py +++ b/pocketbase/client.py @@ -68,12 +68,9 @@ class Client: if self.auth_store.token and ( "headers" not in config or "Authorization" not in config["headers"] ): - auth_type = "Admin" - if hasattr(self.auth_store.model, "verified"): - auth_type = "User" config["headers"] = config.get("headers", {}) config["headers"].update( - {"Authorization": f"{auth_type} {self.auth_store.token}"} + {"Authorization": self.auth_store.token} ) # build url + path url = self.build_url(path)