In this step-by-step guide, we'll show you how to integrate Xano's MagicLink extension with Bubble to enable passwordless login for your users. With MagicLink, your users can log in simply by clicking a secure link sent to their email, eliminating the need to remember and manage passwords.
First, we'll need to make a small modification to the generateMagicLink function provided by the MagicLink extension.
generateMagicLink function.magicLink variable is created using the concat filter.?token= as a separator before the magicLink variable. This will allow us to include the magic token in the URL, making it easier to retrieve later.Next, we'll set up the necessary API endpoints in Xano.
authMagicLink endpoint. This endpoint accepts the user's email address and sends them the MagicLink.authMagicLink endpoint to your clipboard.authMagicLogin endpoint. This endpoint will exchange the MagicLink token for an authorization token, enabling user authentication.authMe endpoint. This endpoint retrieves the authenticated user's information using the authorization token.With the Xano setup complete, let's move to Bubble and configure the API calls.
authMagicLink endpoint URL from Xano.authMagicLogin endpoint URL from Xano.generateMagicLink function in Xano.authMe endpoint URL from Xano.Bearer [auth_token], replacing [auth_token] with a valid authorization token obtained from Xano.Now, let's connect the API calls to Bubble workflows.
token parameter from the URL.auth_token as a page parameter.auth_token parameter for authorization.With everything set up, you can now test the passwordless login flow.
authMagicLink API call.Congratulations! You've successfully integrated Xano's MagicLink extension with Bubble, enabling a seamless passwordless login experience for your users.
Join 100,000+ people already building with Xano.
Start today and scale to millions.
Start building for free