# Anyone has issue with custom login with headless?

**URL:** <https://forum.wixstudio.com/t/anyone-has-issue-with-custom-login-with-headless/66772>\
**Category:** Ask the community\
**Tags:** wix-auth, wix-headless, wix-members-area, code, question\
**Created:** [January 1, 2025, 1:13pm UTC](https://forum.wixstudio.com/t/anyone-has-issue-with-custom-login-with-headless/66772 "2025-01-01T13:13:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanan\_Haji](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sanan_haji/32/102672_2.png) [@Sanan\_Haji](https://forum.wixstudio.com/u/Sanan_Haji)\
**Post date:** [January 1, 2025, 1:13pm UTC](https://forum.wixstudio.com/t/anyone-has-issue-with-custom-login-with-headless/66772/1 "2025-01-01T13:13:10Z")

</div>

**Issue:**

I’m trying to implement authentication using Wix Velo’s headless custom login API, following the [Wix Headless Login Documentation](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login). 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](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?

---

<div class="post-metadata">

**Author:** ![simon8144](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/simon8144/32/16745_2.png) [@simon8144](https://forum.wixstudio.com/u/simon8144)\
**Post date:** [April 2, 2025, 12:07am UTC](https://forum.wixstudio.com/t/anyone-has-issue-with-custom-login-with-headless/66772/2 "2025-04-02T00:07:08Z")

</div>

I am also stuck with the same problem.

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [April 2, 2025, 4:06pm UTC](https://forum.wixstudio.com/t/anyone-has-issue-with-custom-login-with-headless/66772/3 "2025-04-02T16:06:04Z")

</div>

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](https://discord.gg/47gUT9KabP) - I know the Headless team are around there sometimes 🙂
