Implement token refresh

This commit is contained in:
Deon George
2022-08-13 11:48:16 +10:00
parent 8fd79ce23e
commit c1a64e2094
3 changed files with 94 additions and 0 deletions

View File

@@ -14,4 +14,11 @@ class ProviderToken extends Model
'access_token_expires_at',
'refresh_token_expires_at',
];
/* RELATIONS */
public function provider()
{
return $this->belongsTo(ProviderOauth::class,'provider_oauth_id');
}
}