cURL
curl --request POST \ --url https://api.craveup.com/api/v1/verify-otp \ --header 'Content-Type: application/json' \ --data ' { "identifierString": "user@example.com", "otp": "123456", "methodId": "otp_method_123" } '
{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }
Authenticates the OTP, issues a storefront session token, and links the customer account.
"user@example.com"
"123456"
Required for email or SMS OTP verification depending on the login method.
"otp_method_123"
OTP verified successfully.
Storefront session JWT. Send via the Authorization: Bearer header.
Authorization: Bearer
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."