Anyone has issue with custom login with headless?

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:

  1. Use the Register V2 endpoint to initiate login and receive a stateToken and an email with the OTP.

  2. 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…”

}

  1. 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?

1 Like

I am also stuck with the same problem.

I’d recommend sharing more details about your setup and what you’ve tried.

There’s also the Headless channel in Discord that might be worth checking out - Wix Studio Community - I know the Headless team are around there sometimes :slight_smile: