Auth

Send a Supabase magic-link email

Changed on

Server-side wrapper around supabase.auth.signInWithOtp. Sends a one-time link to the supplied email. Public — no auth required.

post/api/v1/auth/magic-link

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/v1/auth/magic-link
  • Auth: none declared

Request body

emailstring email required
nextstring

Root-relative path to land on after the OTP exchange. Defaults to /projects.

Example request

{
  "email": "tester@bunkai.io",
  "next": "/projects"
}

Response

Magic-link email enqueued.

oktrue required

Changes

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status