Using Magic Login Link
🔐 Magic Login Link – FlowMattic Tools Module
The Magic Login Link action in the FlowMattic Tools module allows you to send your users or team members a special one-time login link. When the link is clicked, it logs the user in automatically, without asking for a password.
⚠️ The link is valid for 1 hour only and can be used only once. After that, it’s either expired or invalid.
✨ What is the Magic Login Link?
A Magic Login Link is a temporary, encrypted, one-time-use URL that logs a user into your site without requiring their password.
It’s perfect when:
- You want to give temporary access.
- Your users forgot their password but need urgent access.
- You want to provide a seamless login experience without sending credentials.
🛠️ Where to Find It?
You can find the Magic Login Link action inside the FlowMattic Tools module while building your workflow.
- Go to Workflows.
- Add a new step.
- Select FlowMattic Tools from the app list.
- Choose the Generate Magic Login Link action.
🧭 Step-by-Step Guide
Step 1: Open the Workflow
- Create a new workflow or edit an existing one inside FlowMattic.
Step 2: Add Action – Generate Magic Login Link
- In the action app list, search for FlowMattic Tools.
- Select Generate Magic Login Link.
Step 3: Configure the Action
✅ User ID or Email (Required)
Enter the user’s ID or email address for whom you want to generate the login link.
🌐 Redirect URL (Optional)
Enter the URL where the user should be redirected after clicking the login link.
Default: homepage
⏱️ Redirect URL on Expired (Optional)
Enter the URL where the user should be redirected if the link is expired.
Default: login page
💡 Note: The login link is valid for 1 hour only. It is not reusable.
Step 4: Use the Link
Once the workflow runs, the link will be generated in the step response. You can use this link:
- In an email
- In an SMS
- In a WhatsApp message
- Or anywhere else using FlowMattic actions
🧪 Example Use Cases
📩 1. Send Login Access via Email
Automatically email a login link to your user when they fill out a contact form.
🔄 2. Reset Access Without Password
Let users log in through a magic link instead of resetting their password.
🔐 3. Temporary Client Access
Allow clients to log into a staging site for 1 hour with a one-time secure link.
🧑🤝🧑 4. Invite Team Members
Send new staff or collaborators a magic login link to access their dashboard securely.
🙋♂️ Frequently Asked Questions
❓ Is it safe to use the Magic Login Link feature?
Yes, absolutely!
The link is:
- Encrypted using built-in secure methods
- Not stored in your database
- Automatically invalidated after first use
- Limited to 1-hour validity
There’s no way to alter, extend, or reuse the link.
❓ What happens if the user shares the link?
If the user shares the link before using it:
- The first person who clicks the link will gain access.
If the user has already clicked the link:
- The link becomes invalid and sharing it has no effect.
❓ Can I change the expiry time?
No, the expiration is fixed to 1 hour due to security and technical reasons. This helps ensure:
- Short-lived access
- Higher security
- Minimal misuse
❓ What happens if the user clicks after 1 hour?
They’ll be redirected to the URL set in “Redirect URL on Expired” field.
If you leave this blank, they will be sent to your site’s login page.
❓ Can I use it for WooCommerce or Membership sites?
Yes!
You can generate a login link for any registered user, no matter the role (Subscriber, Customer, Administrator, etc.).
Use it to:
- Let customers check their order
- Give members access to premium content
🔚 Conclusion
The Magic Login Link is a powerful way to streamline user logins without compromising security. Whether you’re offering temporary access, simplifying logins, or automating user access flows, this action helps you do it all — safely and efficiently.