According to the official LinkedIn documentation, redirect_uri
must match exactly one of the configured URIs in your LinkedIn application settings.
Local addresses (e.g., http://localhost
) are not valid.
Instead of using the npm package, I'd recommend following LinkedIn's official Postman tutorial for testing the OAuth flow: https://learn.microsoft.com/en-us/linkedin/shared/authentication/postman-getting-started