Skip to content

Commit

Permalink
Correct finish_oauth method docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarber-akamai committed Jan 29, 2024
1 parent d09d2ea commit ce85c4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linode_api4/login_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def oauth_redirect():
exchange_code = request.args.get("code")
login_client = LinodeLoginClient(client_id, client_secret)
token, scopes = login_client.finish_oauth(exchange_code)
token, scopes, expiry, refresh_token = login_client.finish_oauth(exchange_code)
# store the user's OAuth token in their session for later use
# and mark that they are logged in.
Expand All @@ -419,7 +419,7 @@ def oauth_redirect():
:returns: The new OAuth token, and a list of scopes the token has, when
the token expires, and a refresh token that can generate a new
valid token when this one is expired.
:rtype: tuple(str, list)
:rtype: tuple(str, list, datetime, str)
:raise ApiError: If the OAuth exchange fails.
"""
Expand Down
1 change: 1 addition & 0 deletions test_scripts
Submodule test_scripts added at 83cc8e

0 comments on commit ce85c4a

Please sign in to comment.