Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
StanBarrows committed Oct 5, 2023
1 parent 28e2ffd commit 7a19a1a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/DTO/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ public static function make(CookieJar $cookieJar): self
->reject(fn (array $cookie) => Arr::get($cookie, 'Value') === '')
->firstWhere('Name', '.DWPLATFORMAUTH');

$now = now();

return new self(
cookie: Arr::get($data, 'Value'),
cookie_created_at: $now,
cookie_lifetime_until: $now->addSeconds(525600 * 0.75),
cookie_created_at: now(),
cookie_lifetime_until: now()->addMinutes(525600 * 0.75),
);
}
}

0 comments on commit 7a19a1a

Please sign in to comment.