Skip to content

Commit dc805a8

Browse files
authored
Fix routing to have /auth/ prefix (#4)
Change was just done on onetimeservice
1 parent ece7613 commit dc805a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

descope/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class EndpointsV1:
1717
signUpAuthMagicLinkPath = "/v1/auth/signup/magiclink"
1818
verifyMagicLinkAuthPath = "/v1/auth/magiclink/verify"
1919
publicKeyPath = "/v1/keys"
20-
refreshTokenPath = "/v1/refresh"
21-
logoutPath = "/v1/logoutall"
20+
refreshTokenPath = "/v1/auth/refresh"
21+
logoutPath = "/v1/auth/logoutall"
2222

2323

2424
class DeliveryMethod(Enum):

tests/test_auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ def test_compose_verify_code_url(self):
263263
def test_compose_refresh_token_url(self):
264264
self.assertEqual(
265265
AuthClient._compose_refresh_token_url(),
266-
"/v1/refresh",
266+
"/v1/auth/refresh",
267267
)
268268

269269
def test_compose_logout_url(self):
270270
self.assertEqual(
271271
AuthClient._compose_logout_url(),
272-
"/v1/logoutall",
272+
"/v1/auth/logoutall",
273273
)
274274

275275
def test_logout(self):

0 commit comments

Comments
 (0)