Skip to content

Commit

Permalink
Fix refresh token script and system trigger (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
skarbat authored Sep 4, 2019
1 parent a43a4ec commit cb39937
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/kano-refresh-token
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ if __name__ == '__main__':
logged_in = w.is_logged_in(True)
if logged_in:
debug_print(verbose, 'user is logged in, refreshing the token')
success = w.refresh_token(w.token, True)
success = w.refresh_token(w.get_token(), True)
if success:
rc = 0
debug_print(verbose, 'new token: {}'.format(w.token))
debug_print(verbose, 'new token: {}'.format(w.get_token()))
else:
debug_print(verbose, 'error refreshing token')
else:
Expand Down
2 changes: 1 addition & 1 deletion systemd/user/kano-common-refresh-token.service
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ Description=Kano World Token Refresh
IgnoreOnIsolate=true

[Service]
ExecStart=-/usr/bin/kano-refresh-token
ExecStart=-/usr/bin/kano-refresh-token refresh
Type=oneshot

0 comments on commit cb39937

Please sign in to comment.