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

refactor: extend oauth authtype to support all providers #1024

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

moldy530
Copy link
Collaborator

@moldy530 moldy530 commented Oct 7, 2024

Pull Request Checklist


PR-Codex overview

This PR enhances the social authentication feature by refining the configuration and type definitions for social logins, specifically integrating Google authentication with a popup mode. It also updates the component props and logic to support the new structure.

Detailed summary

  • Updated the condition for showing social authentication in state.tsx.
  • Changed the structure of the social authentication object to include authProviderId and mode in state.tsx.
  • Modified the createConfig function to enable popup OAuth based on the UI configuration.
  • Expanded the AuthType type to include detailed configurations for social authentication.
  • Refined OAuth component props to accept authProviderId instead of googleAuth.
  • Updated rendering logic in OAuth.tsx to display the Google login button based on authProviderId.
  • Adjusted the example configuration in providers.tsx to align with the new authentication structure.

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

Copy link

vercel bot commented Oct 7, 2024

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 Oct 8, 2024 4:49pm
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 4:49pm

@moldy530 moldy530 force-pushed the moldy/redefine-oauth-authtype branch from 3fe8e1d to 9b51419 Compare October 8, 2024 16:36
@moldy530 moldy530 merged commit b0864ab into linna/social-auth-ui-demo Oct 8, 2024
6 checks passed
@moldy530 moldy530 deleted the moldy/redefine-oauth-authtype branch October 8, 2024 16:53
rthomare added a commit that referenced this pull request Oct 9, 2024
…s pr) (#1032)

* chore: wip

* chore: adds google social auth selection to sidebar and lint fixes

* feat: authenticate with google, adds lint fixes

* fix: remove divider between passkey and social auth sections

* fix: adds temporary solution for forcing relaod to allow subsequent login attempts after logging out

* fix: divider logic on component

* chore: wip for oauth_completing step and oauth connection error

* refactor: extend oauth authtype to support all providers (#1024)

* fix: handle connection error

* chore: extend account kit to be able to support other oauth methods

* chore: add temp oauth connection error logo and util file to account-kit

* chore: remove forced reload logout fix

* chore: move hard coded strings into ls

* chore: remove comments

* fix: explicitly state that a KnownAuthProvider does not have a logoUrl

* chore: add default handler for OAuth section

* Update examples/ui-demo/src/app/state.tsx

Co-authored-by: Michael Moldoveanu <michael.moldoveanu@alchemy.com>

* refactor: put passkey and social auth in the same section

* chore: add labels to known auth provider buttons, lint fixes

* chore: add non-functional facebook button to sidebar and fix google icon size

* chore: rebase onto master, fix conflicts, fix svg related errors

* fix: handle the various types of authenticating (#1035)

* refactor: cleanup the auth step usage (#1036)

* chore: update sidebar oauth method button colors

---------

Co-authored-by: linna <linna@alchemy.com>
Co-authored-by: Michael Moldoveanu <michael.moldoveanu@alchemy.com>
Co-authored-by: Linna <38363056+linnall@users.noreply.github.com>
linnall added a commit that referenced this pull request Oct 10, 2024
* chore: wip

* chore: adds google social auth selection to sidebar and lint fixes

* feat: authenticate with google, adds lint fixes

* fix: remove divider between passkey and social auth sections

* fix: adds temporary solution for forcing relaod to allow subsequent login attempts after logging out

* fix: divider logic on component

* chore: wip for oauth_completing step and oauth connection error

* refactor: extend oauth authtype to support all providers (#1024)

* fix: handle connection error

* chore: extend account kit to be able to support other oauth methods

* chore: add temp oauth connection error logo and util file to account-kit

* chore: remove forced reload logout fix

* chore: move hard coded strings into ls

* chore: remove comments

* fix: explicitly state that a KnownAuthProvider does not have a logoUrl

* chore: add default handler for OAuth section

* Update examples/ui-demo/src/app/state.tsx

Co-authored-by: Michael Moldoveanu <michael.moldoveanu@alchemy.com>

* refactor: put passkey and social auth in the same section

* chore: add labels to known auth provider buttons, lint fixes

* chore: add non-functional facebook button to sidebar and fix google icon size

* chore: rebase onto master, fix conflicts, fix svg related errors

* fix: handle the various types of authenticating (#1035)

* refactor: cleanup the auth step usage (#1036)

* chore: update sidebar oauth method button colors

* feat: enable facebook auth

* fix: have connection error icon match chosen auth method

* fix: use boolean

---------

Co-authored-by: Michael Moldoveanu <michael.moldoveanu@alchemy.com>
Co-authored-by: Rohan Thomare <rohanthomare@gmail.com>
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.

2 participants