Skip to content

Commit 981831e

Browse files
authored
Merge pull request #370 from linode/dev
Release v5.12.1
2 parents b468966 + 6c35950 commit 981831e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linode_api4/login_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def oauth_redirect():
403403
exchange_code = request.args.get("code")
404404
login_client = LinodeLoginClient(client_id, client_secret)
405405
406-
token, scopes = login_client.finish_oauth(exchange_code)
406+
token, scopes, expiry, refresh_token = login_client.finish_oauth(exchange_code)
407407
408408
# store the user's OAuth token in their session for later use
409409
# and mark that they are logged in.
@@ -419,7 +419,7 @@ def oauth_redirect():
419419
:returns: The new OAuth token, and a list of scopes the token has, when
420420
the token expires, and a refresh token that can generate a new
421421
valid token when this one is expired.
422-
:rtype: tuple(str, list)
422+
:rtype: tuple(str, list, datetime, str)
423423
424424
:raise ApiError: If the OAuth exchange fails.
425425
"""

0 commit comments

Comments
 (0)