# Auth0 development environment, account linking bug

**URL:** <https://community.auth0.com/t/auth0-development-environment-account-linking-bug/99952>\
**Category:** Get Help\
**Tags:** account-linking, user-management\
**Created:** [February 7, 2023, 11:03pm UTC](https://community.auth0.com/t/auth0-development-environment-account-linking-bug/99952 "2023-02-07T23:03:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew14](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@andrew14](https://community.auth0.com/u/andrew14)\
**Post date:** [February 7, 2023, 11:03pm UTC](https://community.auth0.com/t/auth0-development-environment-account-linking-bug/99952/1 "2023-02-07T23:03:51Z")

</div>

I believe I found a bug with the Auth0 development environments while testing account linking. I submit the request to link a primary and secondary account, but get back the following error:

```auto
"{\"statusCode\":400,\"error\":\"Bad Request\",\"message\":\"JWT (link_with) contains an invalid sub claim.\",\"errorCode\":\"invalid_body\"}"

```

This has been working very well before now, and I didn’t change anything on my end so I was curious as to why it was happening, but when I take a look at the user dashboard in Auth0 I can see that the two accounts were in fact linked successfully, despite the error returned by the API.

I’m pretty sure this isn’t expected behavior but was curious if there’s a possibility that I’m doing something wrong here. Thanks!!!

---

<div class="post-metadata">

**Author:** ![andrew14](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@andrew14](https://community.auth0.com/u/andrew14)\
**Post date:** [February 8, 2023, 1:19pm UTC](https://community.auth0.com/t/auth0-development-environment-account-linking-bug/99952/2 "2023-02-08T13:19:20Z")

</div>

This issue seems to have resolved itself, going to assume there was a bugfix somewhere

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 8, 2023, 2:14pm UTC](https://community.auth0.com/t/auth0-development-environment-account-linking-bug/99952/3 "2023-02-08T14:14:11Z")

</div>

Thanks for letting us know!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 22, 2023, 12:17pm UTC](https://community.auth0.com/t/auth0-development-environment-account-linking-bug/99952/4 "2023-02-22T12:17:50Z")

</div>


