mxstbr / passport-magic-login

Passwordless authentication with magic links for Passport.js.
MIT License
664 stars 45 forks source link

feat: added configurable token ttl #15

Closed vuurball closed 1 year ago

vuurball commented 2 years ago

feat: added configurable token ttl. motivation: be able to control the magic token ttl when configuring the strategy

ShrihariMohan commented 2 years ago

I was searching the docs for time to live for the token , but its in the PR.

vuurball commented 2 years ago

Hey @mxstbr , what do you think about this PR?

mxstbr commented 2 years ago

This should really just be passing through the entirejwt.sign options object, rather than specifically the expiresIn time. If we make that change, I'm happy to add this!

mxstbr commented 1 year ago

Implemented in #23 by @marcusvmsa! Thanks for the contribution @vuurball 🙌