Skip to content

Commit

Permalink
Merge pull request #50 from rogershi-dev/feature/registration-auth
Browse files Browse the repository at this point in the history
Removed the w_member_social scope.
  • Loading branch information
rogershi-dev authored Jul 11, 2024
2 parents aac6658 + d69e0d6 commit 9031768
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/routes/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ router.get('/github/callback', async (req, res) => {
router.get('/linkedin', (req, res) => {
try {
// Need to add the scope w_member_social in order to make posts on behalf of the user
const linkedinAuthUrl = `https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=${LINKEDIN_CLIENT_ID}&redirect_uri=${encodeURIComponent(LINKEDIN_CALLBACK_URL)}&scope=liteprofile%20emailaddress%20w_member_social`;
const linkedinAuthUrl = `https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=${LINKEDIN_CLIENT_ID}&redirect_uri=${encodeURIComponent(LINKEDIN_CALLBACK_URL)}&scope=liteprofile%20emailaddress`;
// extra scope that needs company page verification: %20w_member_social

res.redirect(linkedinAuthUrl);
} catch (error) {
Expand Down

0 comments on commit 9031768

Please sign in to comment.