Everyday Use
How Can I Set An Expiry Time For Magic Login Links?
Control How Long Login Links Stay Active
Magic Link controls link expiry with two settings in Magic Link -> Settings -> General:
- Token Lifespan — how long a link stays valid, set as a number plus a unit (Minutes, Hours, or Days).
- Token Validity — how many times a link can be used before it stops working (default: 1).
Once the lifespan ends, or the link has been used its allowed number of times, the link no longer works and the user must request a new one.
Why Expiry Matters
Expiry settings help you balance convenience and security.
Shorter lifespans give you tighter control over access. Longer lifespans give users extra time to check their email and complete login. A single-use Token Validity ensures each link works only once.
How To Configure
- Go to
Magic Link -> Settings -> General. - Set Token Lifespan — enter a number and choose Minutes, Hours, or Days.
- Set Token Validity — enter how many times a link may be used (default: 1).
- Save changes.
