request passwordless login code

This block is part of the users group and was last modified in core v15.0.0.

request passwordless login code v15.0.0

Send a passwordless login code (email or SMS) to a user. Bypasses the rate limit so it can be triggered right after creating an account. The code itself is never exposed.

In pins 3 + flow
  • flow
    flow
  • Identifier required
    value

    Email address or phone number to send the code to.

  • Identifier type
    value

    Either "email" or "phone". Defaults to "email".

    Default email

  • IP
    value

    Client IP recorded in the "Login attempt details" section of the email. Defaults to the IP of the API client that triggered the blueprint.

Out pins 2 + flow
  • flow
    flow
  • Success
    condition

    True when the code was actually sent. False when the identifier did not match an eligible user or delivery failed.

  • Error
    value

    Error message when success is false.

passwordless
login
magic
code

A function trigger runs the endpoint: the request body is read with get body, get fields takes the email off it, and request passwordless login code mails the code. A branch on the success pin decides between a 200 reply and a 400, both sent with reply in JSON.

Studio canvas example for the request passwordless login code block: the request-code half of passwordless login.

Commonly used with

In production blueprints, this block is most often wired together with:

  • branch: wired in both directions with this block.
  • get fields: feeds into this block. Gets the selected fields from the given object.
  • value: feeds into this block. Simply returns the provided value.

Version history

Introduced in v15.0.0.


Back to users Return to the main group to view all sub-groups Back to user management Return to the group to view all blocks within this group