Skip to content

Commit

Permalink
feat: always request all features
Browse files Browse the repository at this point in the history
  • Loading branch information
nevo-david committed Dec 18, 2024
1 parent dc5cf48 commit d7c7ade
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class LinkedinPageProvider
override async generateAuthUrl() {
const state = makeId(6);
const codeVerifier = makeId(30);
const url = `https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=${
const url = `https://www.linkedin.com/oauth/v2/authorization?response_type=code&prompt=none&client_id=${
process.env.LINKEDIN_CLIENT_ID
}&redirect_uri=${encodeURIComponent(
`${process.env.FRONTEND_URL}/integrations/social/linkedin-page`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ export class LinkedinProvider extends SocialAbstract implements SocialProvider {
identifier = 'linkedin';
name = 'LinkedIn';
isBetweenSteps = false;
scopes = ['openid', 'profile', 'w_member_social', 'r_basicprofile'];
scopes = [
'openid',
'profile',
'w_member_social',
'r_basicprofile',
'rw_organization_admin',
'w_organization_social',
'r_organization_social',
];
refreshWait = true;

async refreshToken(refresh_token: string): Promise<AuthTokenDetails> {
Expand Down Expand Up @@ -79,7 +87,7 @@ export class LinkedinProvider extends SocialAbstract implements SocialProvider {
const codeVerifier = makeId(30);
const url = `https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=${
process.env.LINKEDIN_CLIENT_ID
}&redirect_uri=${encodeURIComponent(
}&prompt=none&redirect_uri=${encodeURIComponent(
`${process.env.FRONTEND_URL}/integrations/social/linkedin`
)}&state=${state}&scope=${encodeURIComponent(this.scopes.join(' '))}`;
return {
Expand Down

0 comments on commit d7c7ade

Please sign in to comment.