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: enable discord social auth #1281

Open
wants to merge 7 commits into
base: rob/twitter
Choose a base branch
from
Open

feat: enable discord social auth #1281

wants to merge 7 commits into from

Conversation

jcaleb4
Copy link
Collaborator

@jcaleb4 jcaleb4 commented Jan 14, 2025

Pull Request Checklist

Screenshot 2025-01-14 at 10 07 57 AM
Screenshot 2025-01-14 at 10 08 08 AM
Screenshot 2025-01-14 at 10 08 21 AM

Loom video of the discord social auth working
https://www.loom.com/share/24d05b1aba104b03963dedcdd22ae57f


PR-Codex overview

This PR focuses on refactoring and enhancing the account-kit library, particularly around the handling of smart account clients and the introduction of new transport types. It includes the removal of deprecated functions, the addition of new icons, and improvements in type safety.

Detailed summary

  • Deleted multiple .mdx files related to smart contracts.
  • Introduced NotType utility type for type safety.
  • Added DiscordIcon, FacebookIcon, GoogleIcon, and AppleIcon.
  • Enhanced OAuthConnectionFailed component to support auth0Connection and logoUrl.
  • Updated createLightAccountClient and createMultiOwnerLightAccountClient functions for better transport handling.
  • Refactored tests to accommodate new client creation methods.
  • Updated package scripts for better type checking.
  • Added sidebar entries for new error classes in aa-sdk/core.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

moldy530 and others added 7 commits January 10, 2025 18:47
# Pull Request Checklist

- [x] Did you add new tests and confirm existing tests pass? (`yarn test`)
- [x] Did you update relevant docs? (docs are found in the `site` folder, and guidelines for updating/adding docs can be found in the [contribution guide](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md))
- [x] Do your commits follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [x] Does your PR title also follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [x] If you have a breaking change, is it [correctly reflected in your commit message](https://www.conventionalcommits.org/en/v1.0.0/#examples)? (e.g. `feat!: breaking change`)
- [x] Did you run lint (`yarn lint:check`) and fix any issues? (`yarn lint:write`)
- [x] Did you follow the [contribution guidelines](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md)?

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the functionality of the `alchemyTransport` in the `account-kit` library. It introduces type guards, refactors client creation methods, and updates documentation to streamline the use of Alchemy transport across various account types.

### Detailed summary
- Added `isAlchemyTransport` type guard in `alchemyTransport.js`.
- Modified exports in `index.ts` to include `isAlchemyTransport`.
- Refactored client creation functions to support dynamic transport.
- Updated documentation for `isAlchemyTransport` and other functions.
- Replaced deprecated client creation methods with new ones.
- Enhanced test cases for multi-owner and light account clients.
- Adjusted package scripts for type checking.
- Improved sidebar references in documentation files.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
# Pull Request Checklist

- [x] Did you add new tests and confirm existing tests pass? (`yarn test`)
- [x] Did you update relevant docs? (docs are found in the `site` folder, and guidelines for updating/adding docs can be found in the [contribution guide](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md))
- [x] Do your commits follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [x] Does your PR title also follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [x] If you have a breaking change, is it [correctly reflected in your commit message](https://www.conventionalcommits.org/en/v1.0.0/#examples)? (e.g. `feat!: breaking change`)
- [x] Did you run lint (`yarn lint:check`) and fix any issues? (`yarn lint:write`)
- [x] Did you follow the [contribution guidelines](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md)?

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces a new type `NotType` to prevent certain type extensions and modifies various client creation functions to utilize this type. It also enhances test coverage for the `createSMAV2AccountClient` function to validate transport behavior and policy ID specifications.

### Detailed summary
- Added `NotType` type to prevent type extensions.
- Updated `createLightAccountClient`, `createMultiOwnerLightAccountClient`, `createMultiOwnerModularAccountClient`, and `createMultisigModularAccountClient` to use `NotType`.
- Enhanced tests for `createSMAV2AccountClient` to check behavior with `AlchemyTransport`.
- Added tests for policy ID and paymaster restrictions in `createSMAV2AccountClient`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Copy link

vercel bot commented Jan 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 14, 2025 4:17pm
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 14, 2025 4:17pm

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

Successfully merging this pull request may close these issues.

3 participants