Issue:
I’m trying to implement authentication using Wix Velo’s headless custom login API, following the Wix Headless Login Documentation. After successfully receiving an OTP via email, I encounter a 404 error when sending a verification request to the endpoint described in the documentation.
Steps to Reproduce:
-
Use the Register V2 endpoint to initiate login and receive a stateToken and an email with the OTP.
-
Call the Verify During Authentication endpoint:
https://wixapis.com/verification-service/v1/auth/verify
• Include the OTP and stateToken in the request payload:
{
“code”: “123456”,
“stateToken”: “AST.eyJraWQiOiJRUWpMeE1KaCIsImFsZyI6IlJTMjU2In0…”
}
- Receive a 404 error response.
What I’ve Tried:
• Confirmed that the stateToken and code are correct.
• Checked if the endpoint URL matches the one in the documentation.
Expected Outcome:
A successful verification response containing:
• state: The current login state.
• sessionToken: To authenticate further actions if state is ‘SUCCESS’.
• stateToken: To continue the login process if needed.
Question:
Has anyone successfully used this endpoint for verifying email during login? If so, are there any additional steps or configurations required that might not be included in the documentation?