auth

Verify Added Identity

Changed on

Verify OTP for newly added identity.

Uses phone_change/email_change type to verify the identity is being added to the current user (not creating a new user).

For a guest this is the conversion: Supabase makes the anonymous user permanent under the same id. There is no Users row yet, so nothing is written there; the web refreshes its session and calls /auth/register, which creates the row. Answers {"success": true, "converted": true}.

An email guest already has the row: the code is written and marked verified like an account's (an email code sets email_verified), and the answer also carries converted.

post/auth/verify-identity

Request

  • Base URL: https://api.helloaxel.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.helloaxel.com/auth/verify-identity
  • Auth: HTTP bearer

Request body

emailstring email nullable
phone_numberstring nullable
otp_codestring required

Response

Successful Response

successboolean required
messagestring nullable
convertedboolean nullable

Guests and email guests only: Supabase made the anonymous user permanent under the same id. Refresh the session; a guest then calls /auth/register (an email guest already has an account).

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status