From fb6fddd65b9ebc7a980d7cdb4c1fffa0e336e2a3 Mon Sep 17 00:00:00 2001 From: aviadl Date: Thu, 9 Jun 2022 17:23:18 +0800 Subject: [PATCH] Fix routing to have /auth/ prefix Change was just done on onetimeservice --- descope/common.py | 4 ++-- tests/test_auth.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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):