Invalid scope error |Unknown Scope error while requesting an authorization code with linkedin sign in api

Linkedin sign in docs.
https://learn.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?context=linkedin%2Fconsumer%2Fcontext&tabs=HTTPS1
https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id={{client_id}}&redirect_uri=http://localhost:3000/login&state=foobar&scope=liteprofile%20emailaddress%20w_member_social

i was trying this with actual client id and I’m getting this error
http://localhost:3000/login?error=invalid_scope_error&error_description=Unknown+scope+%26quot%3B20emailaddress%26quot%3B&state=foobar
in url bar.

Tried removing liteprofile from scope
Tried running the request in browser.
Tried changing the redirect url

Leave a Comment