I’m excited to announce the release of Magic Login 2.3, featuring Magic Login REST API support for generating login links programmatically. This powerful new addition is available exclusively in the PRO version, opening up a world of possibilities for developers looking to integrate Magic Login seamlessly into their applications.
Magic Login REST API Support for Programmatic Login Links
With the new Magic Login REST API support, developers can now create login links programmatically, allowing for more flexible and dynamic user authentication flows. Whether you’re building a custom user interface or automating workflows, the Magic Login REST API makes it easier to manage login processes without manual intervention.
Key Benefits
- Increased Flexibility: Generate login links on the fly based on user actions or specific conditions within your application.
- Enhanced Automation: Automate login processes, reducing the need for manual input and streamlining user experiences.
- Improved Integration: Seamlessly integrate Magic Login with other systems and services, enhancing the overall functionality of your platform.
How to Get Started
Getting started with the new Magic Login REST API is simple. Detailed documentation is available to guide you through the process of integrating and using the API in your projects. Here’s a quick overview:
- Enable REST API on Settings page. Once you enabled, the API Endpoint will be available yoursitename.com/wp-json/magic-login/v1/token
2. Authentication: To create an application password, navigate to your user profile in the WordPress dashboard.
3. Make HTTP request to generate (or/and send email)
Supported parameters:
user: ID or username or email (Required)
send: boolean (Optional) If set to true, the login email will be sent.
redirect_to: string (Optional) Target URL for the redirection.
4. Response Handling: Receive and handle the login link response to complete the login process.
Under the Hood Changes
In addition to the new Magic Login REST API support, we’ve made several under-the-hood improvements to enhance the overall functionality and flexibility of Magic Login:
- Shortcode Flexibility: We now pass
magic_login_form
toshortcode_atts
, providing more flexibility in customizing your shortcodes. - Dependency Updates: We’ve updated several dependencies to ensure compatibility and improvements.
- WordPress 6.6 Compatibility: Magic Login 2.3 has been tested with the upcoming major WordPress version 6.6, ensuring seamless integration and functionality.
Upgrade to Magic Login PRO
Magic Login REST API support is exclusive to the PRO version. For advanced features and premium support, consider upgrading to Magic Login PRO. Unlock the full potential of Magic Login and take your user authentication to the next level.