# Can't get user token got error "Invalid user profile."

**URL:** <https://community.prismic.io/t/cant-get-user-token-got-error-invalid-user-profile/19985>\
**Category:** Developing with Prismic\
**Tags:** auth0\
**Created:** [September 10, 2025, 2:19am UTC](https://community.prismic.io/t/cant-get-user-token-got-error-invalid-user-profile/19985 "2025-09-10T02:19:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![natthawut.ya](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/natthawut.ya/32/8526_2.png) [@natthawut.ya](https://community.prismic.io/u/natthawut.ya)\
**Post date:** [September 10, 2025, 2:19am UTC](https://community.prismic.io/t/cant-get-user-token-got-error-invalid-user-profile/19985/1 "2025-09-10T02:19:10Z")

</div>

## Can’t get user token

we curl to get token from

[https://auth.prismic.io/login](https://auth.prismic.io/login) with post method and body json

{

```
"email": "",

"password": ""

```

}

after that got return 401 and message “Invalid user profile.“

---

<div class="post-metadata">

**Author:** ![Ezekiel](https://avatars.discourse-cdn.com/v4/letter/e/848f3c/32.png) [@Ezekiel](https://community.prismic.io/u/Ezekiel)\
**Post date:** [September 10, 2025, 3:39am UTC](https://community.prismic.io/t/cant-get-user-token-got-error-invalid-user-profile/19985/2 "2025-09-10T03:39:31Z")

</div>

Hi @natthawut.ya,

Welcome to the community. Sorry to hear you’re experiencing this. Could I have a little more details on your use case - what is the email address you’re trying to log in with? Are you using SSO to log in through Prismic usually? Are you able to log in via the Prismic UI normally, or are you getting errors there too?

Every detail helps! Thank you 🙂

---

<div class="post-metadata">

**Author:** ![natthawut.ya](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/natthawut.ya/32/8526_2.png) [@natthawut.ya](https://community.prismic.io/u/natthawut.ya)\
**Post date:** [September 10, 2025, 6:32am UTC](https://community.prismic.io/t/cant-get-user-token-got-error-invalid-user-profile/19985/3 "2025-09-10T06:32:30Z")

</div>

I can login via the Prismic Ui normally

with email natthawut.ya@axa.co.th

---

<div class="post-metadata">

**Author:** ![natthawut.ya](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/natthawut.ya/32/8526_2.png) [@natthawut.ya](https://community.prismic.io/u/natthawut.ya)\
**Post date:** [September 10, 2025, 6:33am UTC](https://community.prismic.io/t/cant-get-user-token-got-error-invalid-user-profile/19985/4 "2025-09-10T06:33:09Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/8/8756ffc9a3a85848a2c8a55a64c8d2d2722f2b5d.png)

---

<div class="post-metadata">

**Author:** ![Ezekiel](https://avatars.discourse-cdn.com/v4/letter/e/848f3c/32.png) [@Ezekiel](https://community.prismic.io/u/Ezekiel)\
**Post date:** [September 10, 2025, 1:20pm UTC](https://community.prismic.io/t/cant-get-user-token-got-error-invalid-user-profile/19985/5 "2025-09-10T13:20:08Z")

</div>

Thanks. Are you using SSO or Github to log in through Prismic? If you’re using SSO, the Auth API won’t work.

---

<div class="post-metadata">

**Author:** ![cords](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/cords/32/8125_2.png) [@cords](https://community.prismic.io/u/cords)\
**Post date:** [September 23, 2025, 11:10pm UTC](https://community.prismic.io/t/cant-get-user-token-got-error-invalid-user-profile/19985/6 "2025-09-23T23:10:08Z")

</div>

@natthawut.ya, we ran into this same issue last month and contacted Prismic support. I learned that with [Prismic’s recent auth changes](https://prismic.io/updates/new-authentication-system), the Authentication API no longer works for new Prismic accounts, or for Prismic accounts that changed their passwords after Prismic rolled out the auth changes.
