mikker / passwordless

🗝 Authentication for your Rails app without the icky-ness of passwords
MIT License
1.25k stars 86 forks source link

Resend magic link on expiration #113

Open 96StanleyLee opened 2 years ago

96StanleyLee commented 2 years ago

Hi there!

I've been using this gem for a while now and I love the built-in functionality and ability to send out these magic links, it makes logging in a breeze.

I just had one question, is there currently a way to configure it so that if a magic link was clicked that has been expired, it would be able to re-send a new magic link?

I've been trying to look into how to do this, but I don't think theres any built-in functionality to support this at the moment.

mikker commented 2 years ago

You're right – no built-in way at the moment.

You could override the views to show the sign-in form on the page where users end up on unsuccessful attempts.

bengarvey commented 2 years ago

@mikker Echo'ing @96StanleyLee's sentiments. Love the gem. Would love to sponsor you or even help develop this feature as we'll need it for sure in the medium term.