From d9f64765f0a0c8e2aab4f12a042cbfb140e7cb83 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Tue, 13 Jul 2021 14:47:50 -0400 Subject: [PATCH] one more little fix --- internal/worker/notifications.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/worker/notifications.go b/internal/worker/notifications.go index f8821d8..4a6969b 100644 --- a/internal/worker/notifications.go +++ b/internal/worker/notifications.go @@ -219,6 +219,11 @@ refreshToken: return } + // Update account + account.AccessToken = tokens.AccessToken + account.RefreshToken = tokens.RefreshToken + account.ExpiresAt = int64(now + 3540) + // Refresh client rac = nc.reddit.NewAuthenticatedClient(tokens.RefreshToken, tokens.AccessToken)