Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"packages/drive",
"packages/github",
"packages/gmail",
"packages/google",
"packages/google-analytics",
"packages/google-seo",
"packages/google-sheets",
Expand All @@ -72,12 +71,13 @@
"packages/youtube"
],
"oauthConnectorPackages": [
"packages/google",
"packages/google-oauth",
"packages/linkedin-oauth"
],
"internalPackages": [
"packages/rest-sdk"
],
"total": 69,
"generatedAt": "2025-04-28T11:20:16.294Z"
"generatedAt": "2025-04-30T07:19:18.815Z"
}
2 changes: 1 addition & 1 deletion packages/linkedin-oauth/src/linkedinOAuthSdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class LinkedInOAuthSdk {
try {
// LinkedIn doesn't have a dedicated token introspection endpoint
// We'll validate by making a simple API call to the /me endpoint
const response = await fetch(`${LinkedInOAuthSdk.API_BASE_URL}/me`, {
const response = await fetch(`${LinkedInOAuthSdk.API_BASE_URL}/userinfo`, {
headers: {
Authorization: `Bearer ${accessToken}`,
},
Expand Down
6 changes: 3 additions & 3 deletions packages/linkedin-share/src/linkedinShareSdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class LinkedinShareSdk {
* Get the current user's LinkedIn ID
*/
private async getUserId(): Promise<string> {
const response = await fetch(`${LinkedinShareSdk.API_BASE_URL}/me`, {
const response = await fetch(`${LinkedinShareSdk.API_BASE_URL}/userinfo`, {
headers: {
Authorization: `Bearer ${this.accessToken}`,
},
Expand All @@ -158,10 +158,10 @@ export class LinkedinShareSdk {
);
}

if (typeof data.id !== 'string') {
if (typeof data.sub !== 'string') {
throw new Error('Invalid user ID response from LinkedIn');
}

return data.id;
return data.sub;
}
}
2 changes: 1 addition & 1 deletion packages/linkedin-share/src/schemas/share.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const shareContentSchema = z.object({
});

export const shareResponseSchema = z.object({
id: z.string(),
sub: z.string(),
activity: z.string(),
created: z.object({
actor: z.string(),
Expand Down
2 changes: 1 addition & 1 deletion packages/linkedin-share/src/types/share.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export interface LinkedInShareContent {
}

export interface LinkedInShareResponse {
id: string;
sub: string;
activity: string;
created: {
actor: string;
Expand Down