yes.
This commit is contained in:
parent
3bd67cf9a5
commit
c5417606d6
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -164,8 +164,8 @@ def get_access_token():
|
||||||
code = sp_oauth.get_auth_response()
|
code = sp_oauth.get_auth_response()
|
||||||
token = sp_oauth.get_access_token(code, as_dict=False)
|
token = sp_oauth.get_access_token(code, as_dict=False)
|
||||||
else:
|
else:
|
||||||
if is_token_expired()
|
if is_token_expired():
|
||||||
token_info = refresh_access_token(token_info)
|
token_info = refresh_access_token(token_info)
|
||||||
token = token_info["access_token"]
|
token = token_info["access_token"]
|
||||||
|
|
||||||
def is_token_expired():
|
def is_token_expired():
|
||||||
|
|
Loading…
Reference in a new issue