# Auth0-Lock login error

**URL:** <https://community.auth0.com/t/auth0-lock-login-error/7030>\
**Category:** Get Help\
**Tags:** lock\
**Created:** [June 13, 2017, 2:17am UTC](https://community.auth0.com/t/auth0-lock-login-error/7030 "2017-06-13T02:17:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![whittaker89](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@whittaker89](https://community.auth0.com/u/whittaker89)\
**Post date:** [June 13, 2017, 2:17am UTC](https://community.auth0.com/t/auth0-lock-login-error/7030/1 "2017-06-13T02:17:50Z")

</div>

New to Auth0, testing it out to be part of our new platform but I can’t seem to get my head around the login section. I’m using Auth0-lock for the embedded widget and have registered users’ but when I try to login it errors.

[auth0.client.login · Issue #456 · auth0/auth0.js · GitHub](https://github.com/auth0/auth0.js/issues/456) this is a resolved github issue that is exactly my issue but i can’t see how i need to apply this to my account as i’m unfamiliar with it in the first instance. Any can explain it so that I might know what I need to do?

It seems like this has been a fairly recent change so I can’t find information on this elsewhere.

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [June 13, 2017, 6:02am UTC](https://community.auth0.com/t/auth0-lock-login-error/7030/2 "2017-06-13T06:02:16Z")

</div>

This error is because you need to enable the grant type `http://auth0.com/oauth/grant-type/password-realm` for your client. This can be done via the Management API - outlined here:

> **[Application Grant Types](https://auth0.com/docs/get-started/applications/application-grant-types)**
>
> Describes grant types and how they relate to applications.

Note: remember to include the existing grant\_types (if you still want those to be enabled) in your request body, e.g.

```
{
    "grant_types": 
      "OTHER_EXISTING_GRANT_TYPES",
      ...
      "http://auth0.com/oauth/grant-type/password-realm"
    ]
}

```

These can be obtained from the GET a client endpoint: [Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Clients/get_clients_by_id)

---

<div class="post-metadata">

**Author:** ![whittaker89](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@whittaker89](https://community.auth0.com/u/whittaker89)\
**Post date:** [June 13, 2017, 6:41am UTC](https://community.auth0.com/t/auth0-lock-login-error/7030/3 "2017-06-13T06:41:44Z")

</div>

That’s done the trick, thanks a lot !

Don’t know why I couldn’t take that away from the original github issue!

---

<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:54am UTC](https://community.auth0.com/t/auth0-lock-login-error/7030/4 "2018-03-02T05:54:35Z")

</div>


