Categories, Netto Homeparty
This commit is contained in:
parent
7d1ee844eb
commit
351a8f763c
13 changed files with 144 additions and 64 deletions
|
|
@ -45,6 +45,15 @@ class AuthController extends Controller
|
|||
$token->expires_at = Carbon::now()->addDays(1);
|
||||
}
|
||||
|
||||
\DB::table('oauth_access_tokens')
|
||||
->whereDate('expires_at', '<', now()->addWeeks(1))
|
||||
->delete();
|
||||
|
||||
\DB::table('oauth_refresh_tokens')
|
||||
->whereDate('expires_at', '<', now()->addWeeks(1))
|
||||
->delete();
|
||||
|
||||
|
||||
$token->save();
|
||||
return response()->json([
|
||||
'access_token' => $tokenResult->accessToken,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue