Skip to content

Commit

Permalink
Remove return value from access_token_login
Browse files Browse the repository at this point in the history
  • Loading branch information
coltonhurst committed Nov 16, 2023
1 parent f80c4dd commit c992350
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions languages/python/BitwardenClient/bitwarden_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ def __init__(self, settings: ClientSettings = None):
settings_json = json.dumps(settings.to_dict())
self.inner = bitwarden_py.BitwardenClient(settings_json)

def access_token_login(self, access_token: str) -> AccessTokenLoginResponse:
result = self._run_command(
def access_token_login(self, access_token: str):
self._run_command(
Command(access_token_login=AccessTokenLoginRequest(access_token))
)
return ResponseForAccessTokenLoginResponse.from_dict(result)

def secrets(self):
return SecretsClient(self)
Expand Down
2 changes: 1 addition & 1 deletion languages/python/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
organization_id = "org_id_here"

# Attempt to authenticate with the Secrets Manager Access Token
result = client.access_token_login("access_token_here")
client.access_token_login("access_token_here")

# -- Example Project Commands --

Expand Down

0 comments on commit c992350

Please sign in to comment.