• Resolved selenasmith

    (@selenasmith)


    Is there a way to change the token expiration? It’s currently set at 10 minutes per the documentation.

    Thanks!
    Selena Smith

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Georgian Cocora

    (@raster02)

    Hello @selenasmith,

    We can use a filter to change the duration of this. For example, this will change it to 1 hour:

    add_filter('wpa_change_link_expiration', 'wpac_change_link_expiration');
    function wpac_change_link_expiration() {
        $time = now();
        
        return $time + 60*60;
    }

    This snippet can be added in the functions.php file from your child theme.

    Let me know if this worked !

    Regards.

    Thread Starter selenasmith

    (@selenasmith)

    thanks, but it didn’t work – it just kept spinning instead of going to the “check your email” message.

    Thread Starter selenasmith

    (@selenasmith)

    I changed this line:
    $time = now();

    to
    $time = time();

    and that appears to fix the issue …

    Plugin Author Georgian Cocora

    (@raster02)

    Hello Selena,

    Sorry about that it was my mistake. I’m glad you solved it.

    Regards.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Passwordless Login – Token Expiration’ is closed to new replies.