-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Description
Description
Currently the login link feature of Symfony provides a configuration option to set the lifetime of login links.
However, this is a completely static value and the same for all login links generated at runtime.
It would be useful if there was an API adjustment so that one can set a specific lifetime individually for each login link instead.
This would cover usecases where a login link lifetime depends on the related user status.
Example
$loginLinkDetails = $loginLinkHandler->createLoginLink(
user: $user,
lifetime: $this->calculateSecondsUntilSomeEvent(),
);darthf1, alamirault, fmata and cur53se