# V8 Client Login Unauthorized

**URL:** <https://community.auth0.com/t/v8-client-login-unauthorized/8323>\
**Category:** Get Help\
**Tags:** v8, unauthorized, login\
**Created:** [September 28, 2017, 4:21am UTC](https://community.auth0.com/t/v8-client-login-unauthorized/8323 "2017-09-28T04:21:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric.liu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/eric.liu/32/3560_2.png) [@eric.liu](https://community.auth0.com/u/eric.liu)\
**Post date:** [September 28, 2017, 4:21am UTC](https://community.auth0.com/t/v8-client-login-unauthorized/8323/1 "2017-09-28T04:21:49Z")

</div>

Using the V8 Node library, calling `client.login` errors out upon making the `/userinfo` call, only receiving an `Unauthorized` error message.

```
webAuth.client.login(
        {
          realm: 'Username-Password-Authentication',
          username: email,
          password: password,
          scope: 'openid offline_access',
        },
        ....
)

```

even adding the line `audience: https://.....auth0.com/userinfo` to the options when logging in doesn’t fix it. Problem started happening today, nothing was changed in regards to the login flow.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [September 28, 2017, 3:20pm UTC](https://community.auth0.com/t/v8-client-login-unauthorized/8323/2 "2017-09-28T15:20:39Z")

</div>

There was an [incident](https://status.auth0.com/incidents/cxc1r56l04yz) detected around that same timeline and that is now resolved that could explain that situation, in particular, the underlying cause was with the `/userinfo` endpoint so if you can no longer reproduce the situation what you experienced was the same issue that was addressed in the linked incident.

---

<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:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/v8-client-login-unauthorized/8323/3 "2018-03-02T05:56:43Z")

</div>


