Bind Phone Confirm
Changed onVerify OTP + write phone to the caller's user row.
Mirrors /api/auth/sms/login's OTP verification (expiry, max attempts, constant-time compare) but updates the existing row instead of creating one. The phone_verified_at column is bumped to the current UTC stamp so cross-region sync's newest-wins treats this as the authoritative state.
Returns the updated public-user shape — same as /api/auth/me — so the SPA can refresh its Pinia store without a separate fetch.
post/api/user/profile/bind-phone-confirm
Request
- Base URL: https://api.omicos.cn (the document declares no server; this is the origin it was published from)
- URL: https://api.omicos.cn/api/user/profile/bind-phone-confirm
- Auth: none declared
Headers
authorizationstring nullable
x-omicos-devicestring nullable
x-omicos-device-kindstring nullable
x-omicos-device-namestring nullable
Request body
Response
Successful Response
object required
Changes
- info
added the new optional
headerrequest parameterx-omicos-device - info
added the new optional
headerrequest parameterx-omicos-device-kind - info
added the new optional
headerrequest parameterx-omicos-device-name
- info