Appropriately refresh sending tokens
This commit is contained in:
parent
3391ad54e0
commit
5670abe224
1 changed files with 2 additions and 0 deletions
|
|
@ -359,6 +359,8 @@ class NinjaMailerJob implements ShouldQueue
|
|||
],
|
||||
])->getBody()->getContents());
|
||||
|
||||
nlog($token);
|
||||
|
||||
if($token){
|
||||
|
||||
$user->oauth_user_refresh_token = property_exists($token, 'refresh_token') ? $token->refresh_token : $user->oauth_user_refresh_token;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue