Skip to navigation

Auto-Login via Token

Authenticate a user via an auto-login token (from email login links or invitation emails).

Authentication: Public — token-based.

Query parameters:

  • token (required) — The auto-login token from the email link
  • to (optional) — Redirect path after login
  • login_link (optional) — Set to true if this is from a login link email
  • user_ip (optional) — Client IP for analytics

Response:

  • token — JWT auth token
  • location — Redirect URL. If user needs to set a password, redirects to password setup page.
  • the member’s profile fields at the top level of data (id, first_name, last_name, name, initials, email, avatar_url, status, bio, phone, website, social handles, otp_enabled, passkey_registered, last_seen_at, created_at, updated_at, …) — there is no nested user object

Side effects: Triggers a UserLogin event.

Errors:

  • 401 — Invalid or expired auto-login token

Query parameters

tokenstringOptional

Auto-login token from email link

Response

OK