-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### TL;DR Improved the in-app wallet sign-in speed by refactoring OAuth path handling to make it more generic and efficient. ### What changed? - Standardized the OAuth path handling to make it more generic and reusable across multiple providers. - Updated `getLoginPath` to `getSocialAuthLoginPath` for OAuth providers like Google, Facebook, Apple, and Discord. - Improved login speed and reduced redundancy by streamlining the OAuth path logic. - Removed outdated and redundant code related to individual OAuth provider handling. ### How to test? 1. Test the sign-in process using various OAuth providers such as Google, Facebook, Apple, and Discord. 2. Ensure the redirection and sign-in speed are improved. 3. Verify that the in-app wallet sign-in works seamlessly without any errors. ### Why make this change? The changes were necessary to optimize and standardize the OAuth sign-in process, improving the overall user experience. The previous implementation had redundant code for individual providers, which was refactored to be more efficient and easier to maintain. --- <!-- start pr-codex --> --- ## PR-Codex overview This PR improves in-app wallet sign-in speed by updating authentication strategies and paths. ### Detailed summary - Updated OAuth authentication strategy to `SocialAuthOption` - Improved login path retrieval for social authentication providers - Refactored Discord-specific authentication to generic OAuth approach > The following files were skipped due to too many changes: `packages/thirdweb/src/wallets/in-app/native/auth/native-auth.ts` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information
1 parent
a9a3f0f
commit d3c8302
Showing
11 changed files
with
95 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"thirdweb": patch | ||
--- | ||
|
||
Improved in-app wallet sign-in speed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
packages/thirdweb/src/wallets/in-app/core/authentication/getLoginPath.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
packages/thirdweb/src/wallets/in-app/web/lib/auth/utils.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.