diff --git a/tests/test_users.py b/tests/test_users.py index 23afeeed..7825750b 100644 --- a/tests/test_users.py +++ b/tests/test_users.py @@ -254,9 +254,7 @@ def test_authenticate_with_password( assert request["json"]["client_secret"] == "sk_abdsomecharactersm284" assert request["json"]["grant_type"] == "password" - def test_authenticate_with_token( - self, capture_and_mock_request, mock_auth_response - ): + def test_authenticate_with_code(self, capture_and_mock_request, mock_auth_response): code = "test_code" expires_in = 3600 user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" diff --git a/workos/users.py b/workos/users.py index 204cac2e..f9902e76 100644 --- a/workos/users.py +++ b/workos/users.py @@ -290,7 +290,7 @@ def authenticate_with_password( return WorkOSAuthenticationResponse.construct_from_response(response).to_dict() - def authenticate_with_token( + def authenticate_with_code( self, code, expires_in=None,