Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(connector): add amazon social connector #7034

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wangsijie
Copy link
Contributor

Summary

Add Amazon social connector.

Testing

Unit tests and local tested.

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

@wangsijie wangsijie requested a review from a team February 13, 2025 04:21
@github-actions github-actions bot added feature Cool stuff size/l labels Feb 13, 2025
Copy link

COMPARE TO master

Total Size Diff ⚠️ 📈 +21.73 KB

Diff by File
Name Diff
.changeset/beige-shoes-remain.md 📈 +70 Bytes
packages/connectors/connector-amazon/README.md 📈 +2.26 KB
packages/connectors/connector-amazon/logo.svg 📈 +6.96 KB
packages/connectors/connector-amazon/package.json 📈 +1.7 KB
packages/connectors/connector-amazon/src/constant.ts 📈 +1.65 KB
packages/connectors/connector-amazon/src/index.test.ts 📈 +2.79 KB
packages/connectors/connector-amazon/src/index.ts 📈 +3.87 KB
packages/connectors/connector-amazon/src/mock.ts 📈 +95 Bytes
packages/connectors/connector-amazon/src/types.ts 📈 +606 Bytes
pnpm-lock.yaml 📈 +1.74 KB

Comment on lines +4 to +7
export const authorizationEndpoint = 'https://www.amazon.com/ap/oa';
export const defaultScope = 'profile';
export const accessTokenEndpoint = 'https://api.amazon.com/auth/o2/token';
export const userInfoEndpoint = 'https://api.amazon.com/user/profile';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better add links to docs for future reference.

Comment on lines +13 to +14
name: z.string().optional().nullable(),
email: z.string().optional().nullable(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can use nullish().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants