Skip to content

Set custom lifetime for login link #46561

@mbrodala

Description

@mbrodala

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(),
);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions