diff --git a/descope/common.py b/descope/common.py index c64ed6113..78d35df2c 100644 --- a/descope/common.py +++ b/descope/common.py @@ -17,8 +17,8 @@ class EndpointsV1: signUpAuthMagicLinkPath = "/v1/auth/signup/magiclink" verifyMagicLinkAuthPath = "/v1/auth/magiclink/verify" publicKeyPath = "/v1/keys" - refreshTokenPath = "/v1/refresh" - logoutPath = "/v1/logoutall" + refreshTokenPath = "/v1/auth/refresh" + logoutPath = "/v1/auth/logoutall" class DeliveryMethod(Enum): diff --git a/tests/test_auth.py b/tests/test_auth.py index 9e80d1fb5..bab2b1339 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -263,13 +263,13 @@ def test_compose_verify_code_url(self): def test_compose_refresh_token_url(self): self.assertEqual( AuthClient._compose_refresh_token_url(), - "/v1/refresh", + "/v1/auth/refresh", ) def test_compose_logout_url(self): self.assertEqual( AuthClient._compose_logout_url(), - "/v1/logoutall", + "/v1/auth/logoutall", ) def test_logout(self):