feat: always request all features
This commit is contained in:
parent
dc5cf48518
commit
d7c7adea4f
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue