# SPA Passwordless Flow getting "Client authentication is required error"

**URL:** <https://community.auth0.com/t/spa-passwordless-flow-getting-client-authentication-is-required-error/124693>\
**Category:** Get Help\
**Tags:** identifier-first, login-experience\
**Created:** [January 11, 2024, 11:21pm UTC](https://community.auth0.com/t/spa-passwordless-flow-getting-client-authentication-is-required-error/124693 "2024-01-11T23:21:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![techteam](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@techteam](https://community.auth0.com/u/techteam)\
**Post date:** [January 11, 2024, 11:21pm UTC](https://community.auth0.com/t/spa-passwordless-flow-getting-client-authentication-is-required-error/124693/1 "2024-01-11T23:21:39Z")

</div>

Hello,

I’m setting up Passwordless login in my Single Page Application. The application is hosted in my Staging tenant.

My web app is using the auth0-js SDK. When making the passwordlessStart request, I get a 403 error response with the message: “Client authentication is required error”.

I’ve confirmed that the request includes: the correct client\_id, a valid redirect\_uri, and a valid audience. This flow works in my local environment using the Dev tenant.

Am I missing something? Thanks in advance for your help!

Best,  
Brian

---

<div class="post-metadata">

**Author:** ![gauthamsv5](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@gauthamsv5](https://community.auth0.com/u/gauthamsv5)\
**Post date:** [January 12, 2024, 6:22am UTC](https://community.auth0.com/t/spa-passwordless-flow-getting-client-authentication-is-required-error/124693/3 "2024-01-12T06:22:39Z")

</div>

Hey. Thanks for reaching out to community !!

The error might have occurred because of the way app and grant types were setup. Please make sure the required grant types are setup and the application has to be “Single Page Application” since auth0.js is a browser based auth client.

Let me know if the change works well. Thanks and looking forward to your response.

Regards,  
Gautham

---

<div class="post-metadata">

**Author:** ![techteam](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@techteam](https://community.auth0.com/u/techteam)\
**Post date:** [January 12, 2024, 9:32pm UTC](https://community.auth0.com/t/spa-passwordless-flow-getting-client-authentication-is-required-error/124693/4 "2024-01-12T21:32:39Z")

</div>

Hello Guatham!

Thank you for your advice. I have confirmed that my application is a “Single Page Application”. The following grant types are enabled: “Implicit”, “Authorization Code”, “Refresh Token”.

These above configuration settings are identical to the settings in my Development application, which I have been able to use successfully.

Please let me know if there’s anything else I can try or if I can include any logs or other information to help you.

Best,  
Brian

---

<div class="post-metadata">

**Author:** ![techteam](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@techteam](https://community.auth0.com/u/techteam)\
**Post date:** [January 13, 2024, 12:17am UTC](https://community.auth0.com/t/spa-passwordless-flow-getting-client-authentication-is-required-error/124693/5 "2024-01-13T00:17:11Z")

</div>

Hello Gautham,

I just want to let you know that I have fixed the issue. I toggled the application type to “Regular Web Application” and then BACK to “Single Page Application”. It started working after I toggled it back to “Single Page Application”. I hope this helps anyone else who may encounter this unusual error in the future.

Best,  
Brian

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 27, 2024, 12:50am UTC](https://community.auth0.com/t/spa-passwordless-flow-getting-client-authentication-is-required-error/124693/7 "2024-01-27T00:50:58Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
