# Passwordless broken?

**URL:** <https://community.auth0.com/t/passwordless-broken/7815>\
**Category:** Get Help\
**Tags:** passwordless, ios\
**Created:** [August 11, 2017, 12:06am UTC](https://community.auth0.com/t/passwordless-broken/7815 "2017-08-11T00:06:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrem](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@andrem](https://community.auth0.com/u/andrem)\
**Post date:** [August 11, 2017, 12:06am UTC](https://community.auth0.com/t/passwordless-broken/7815/1 "2017-08-11T00:06:26Z")

</div>

In reference to a pre-June tenant where passwordless is _not_ disabled.

**Start passwordless**

Request:

```
POST https://tenant.eu.auth0.com/passwordless/start
{"phone_number":"xxxxxxx","connection":"sms","send":"code","client_id":"yyyyy"}

```

**Login**

```
POST https://tenant.eu.auth0.com/oauth/ro 
{"grant_type":"password","client_id":"yyyyyyyyyy","connection":"sms","scope":"openid offline_access","username":"xxxxxxx","password":"zzzzz"}

```

response:

```
{"error":"invalid_request","error_description":"device parameter must be specified"}

```

According to the docs, this error message is for grant type jwt\_bearer ([Authentication API - Auth0 Docs](https://auth0.com/docs/api/authentication?shell#post-oauth-ro)) not for grant type password. ‘device parameter’ has not been needed before now. Furthermore, this is being done via the iOS SDK but is easily replicated via CURL or Postman

Any help appreciated.

---

<div class="post-metadata">

**Author:** ![andrem](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@andrem](https://community.auth0.com/u/andrem)\
**Post date:** [August 11, 2017, 1:08am UTC](https://community.auth0.com/t/passwordless-broken/7815/2 "2017-08-11T01:08:12Z")

</div>

So, this works again if you don’t request offline\_access scope but then that obviously means you no longer get a refresh token which is a different kind of breaking change. Either way, this looks broken compared to how it used to function.

---

<div class="post-metadata">

**Author:** ![andrem](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@andrem](https://community.auth0.com/u/andrem)\
**Post date:** [August 11, 2017, 1:31am UTC](https://community.auth0.com/t/passwordless-broken/7815/3 "2017-08-11T01:31:24Z")

</div>

Interestingly, you can get an refresh token if the grant\_type is “jwt-bearer” _and_ you include a device type. However, this grant type is not used by the iOS Swift SDK and is not the grant type supposed to be used for passwordless.

---

<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:** [August 11, 2017, 4:39pm UTC](https://community.auth0.com/t/passwordless-broken/7815/4 "2017-08-11T16:39:52Z")

</div>

To my knowledge, the `/oauth/ro` endpoint with the `password` grant always required the `device` parameter if you included the `offline_access` as part of the scope. As you mentioned this is a legacy endpoint and there aren’t many changes being made to legacy endpoints so it’s more likely to be an omission in the documentation rather than a change. Are you sure you were able to call this endpoint with offline access specified and without a device parameter?

The theory about an omission in the documentation is also substantiated by the fact that the error message is not exactly the same as the one documented for the `jwt-bearer` grant.

---

<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:55am UTC](https://community.auth0.com/t/passwordless-broken/7815/5 "2018-03-02T05:55:52Z")

</div>


