Skip to content

Commit

Permalink
execute async scheduled refresh callback (#6084)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt authored and philippjfr committed Dec 20, 2023
1 parent 344c680 commit 1f37158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ def _schedule_refresh(self, expiry_ts, user, refresh_token, application, request
expiry_date = dt.datetime.now() + dt.timedelta(seconds=expiry_seconds) # schedule_task is in local TZ
refresh_cb = partial(self._scheduled_refresh, user, refresh_token, application, request)
if expiry_seconds <= 0:
refresh_cb()
state.execute(refresh_cb)
return
task = f'{user}-refresh-access-tokens'
try:
Expand Down

0 comments on commit 1f37158

Please sign in to comment.