1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00

Appropriately refresh sending tokens

This commit is contained in:
David Bomba 2022-06-22 19:21:58 +10:00
parent 5513422739
commit 3391ad54e0

View File

@ -361,8 +361,7 @@ class NinjaMailerJob implements ShouldQueue
if($token){
nlog($token);
$user->oauth_user_refresh_token = property_exists($token, 'refresh_token') ? $token->refresh_token : $user->oauth_user_refresh_token;
$user->oauth_user_token = $token->access_token;
$user->oauth_user_token_expiry = now()->addSeconds($token->expires_in);
$user->save();