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

Can’t get user token

we curl to get token from

https://auth.prismic.io/login with post method and body json

{

"email": "",

"password": ""

}

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

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 :slight_smile:

I can login via the Prismic Ui normally

with email natthawut.ya@axa.co.th

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

1 Like

@natthawut.ya, we ran into this same issue last month and contacted Prismic support. I learned that with Prismic’s recent auth changes, 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.

1 Like