Auth0 `/userinfo` endpoint documentation is incorrect

Should be fairly easy to fix: The documentation states that the /userinfo endpoint accepts only 1 header, specifically access_token. When a request is built using the tool on [the documentation website] in cURL, and executed, a 401 Unauthorized code is returned. The correct header that works for this endpoint is Authorization: Bearer <token>.

So the request goes from

curl -L -g 'https://{yourDomain}/userinfo' \
-H 'Accept: application/json' \
-H 'access_token: <Token>'

(generated by the tool on the documentation)

to

curl -L -g 'https://{yourDomain}/userinfo' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <Token>'

Hi there!

Welcome to the Auth0 Community!

Thank you for reporting that! I’ve sent that over to our Documentation team to review and update!

Thank you for your contribution!
Dawid

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.