Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatascastro12 committed Aug 21, 2023
1 parent 50a4c6e commit 19e7771
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tests/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion workos/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 19e7771

Please sign in to comment.