# Client authentication is required

**URL:** <https://community.auth0.com/t/client-authentication-is-required/83730>\
**Category:** Get Help\
**Created:** [May 19, 2022, 12:19pm UTC](https://community.auth0.com/t/client-authentication-is-required/83730 "2022-05-19T12:19:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ritesh.rai](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ritesh.rai/32/37339_2.png) [@ritesh.rai](https://community.auth0.com/u/ritesh.rai)\
**Post date:** [May 19, 2022, 12:19pm UTC](https://community.auth0.com/t/client-authentication-is-required/83730/1 "2022-05-19T12:19:50Z")

</div>

I am getting “Auth0.Core.Exceptions.ErrorApiException: Client authentication is required” error message while calling StartPasswordlessEmailFlowAsync.  
I am passing below information -

await authClient.StartPasswordlessEmailFlowAsync(new PasswordlessEmailRequest()  
{  
Email = request.UserEmail,  
ClientId = authDetails.ClientId,  
ClientSecret = authDetails.ClientSecret,  
Type = PasswordlessEmailRequestType.Code,  
AuthenticationParameters = new Dictionary\<string, object\>() {  
{  
“scope”, “openid profile email offline\_access”  
}  
}  
})

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [May 19, 2022, 6:03pm UTC](https://community.auth0.com/t/client-authentication-is-required/83730/3 "2022-05-19T18:03:22Z")

</div>

Hi @ritesh.rai ,

Thank you for posting this topic on the Auth0 Community!

I checked the log in your tenant and the passwordless email connection and have the following observations:

1. in your Email connection, the scope is  
`"scope": "openid profile offline_access",`

2. the Application enabled for your passwordless email connection is a Native App. ClientSecrete is required only for the Regular Web App as per [this](https://auth0.com/docs/api/authentication#get-code-or-link) doc. So let’s remove it from your code and see how it goes.

If this error persists, please DM me the [HAR file,](https://auth0.com/docs/troubleshoot/generate-and-analyze-har-files) and I will look into this further. Thank you!

---

<div class="post-metadata">

**Author:** ![ritesh.rai](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ritesh.rai/32/37339_2.png) [@ritesh.rai](https://community.auth0.com/u/ritesh.rai)\
**Post date:** [May 20, 2022, 5:01pm UTC](https://community.auth0.com/t/client-authentication-is-required/83730/4 "2022-05-20T17:01:03Z")

</div>

Thanks @lihua.zhang for your quick reply. But the same piece of code is working fine for the argus-password connection. It seems something went wrong with newly created connection revival-dev-password .  
Thanks Again!

---

<div class="post-metadata">

**Author:** ![ritesh.rai](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ritesh.rai/32/37339_2.png) [@ritesh.rai](https://community.auth0.com/u/ritesh.rai)\
**Post date:** [June 30, 2022, 3:22pm UTC](https://community.auth0.com/t/client-authentication-is-required/83730/5 "2022-06-30T15:22:48Z")

</div>

This is working now, I might have missed something.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [June 30, 2022, 6:06pm UTC](https://community.auth0.com/t/client-authentication-is-required/83730/6 "2022-06-30T18:06:05Z")

</div>

Thank you for the updates. Glad to know it’s resolved 👏 👍

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [June 30, 2022, 6:06pm UTC](https://community.auth0.com/t/client-authentication-is-required/83730/7 "2022-06-30T18:06:11Z")

</div>


