auth0.js icon indicating copy to clipboard operation
auth0.js copied to clipboard

Getting the user profile not working

Open CRGavrila opened this issue 6 years ago • 3 comments

Hello, I followed the docs: https://auth0.com/docs/libraries/auth0js#updating-the-user-profile and getting user profile is not working.

Here is the snippets: image

webAuth.checkSession and webAuth.client.userInfo Is working

I got an error only for auth0Manage.getUser Error: error: "Bad Request" errorCode: "Bearer" message: "Bad HTTP authentication header format" statusCode: 400

PS: I need user_metadata and app_metadata returned after webAuth.client.userInfo call

CRGavrila avatar Nov 24 '20 08:11 CRGavrila

the get request done by auth0Manage.getUser (https://domain.eu.auth0.com/api/v2/users/google-oauth2%7C11259190000079421) receive the 400 status code, even in request atuhorization of header is the same access_token received from checkSession

ps: this takes place for Custom API and not for default: Auth0 Management API

CRGavrila avatar Nov 24 '20 10:11 CRGavrila

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇‍♂️

stale[bot] avatar Dec 24 '20 20:12 stale[bot]

+1

jgalianoz avatar Aug 18 '22 04:08 jgalianoz