-
Notifications
You must be signed in to change notification settings - Fork 619
[Playground] Feature: Adds smart account auth #5979
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
[Playground] Feature: Adds smart account auth #5979
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5979 +/- ##
=======================================
Coverage 54.80% 54.80%
=======================================
Files 1150 1150
Lines 61237 61237
Branches 5154 5154
=======================================
Hits 33559 33559
Misses 26950 26950
Partials 728 728
*This pull request uses carry forward flags. Click here to find out more. |
Merge activity
|
44af834 to
030521e
Compare
---
title: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
---
If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):
## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.
## How to test
Unit tests, playground, etc.
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces a new smart account authentication feature in the `playground-web` application, allowing users to sign in using Ethereum. It adds a new component for the authentication button and integrates it into the main application page.
### Detailed summary
- Added `SmartAccountAuthButton` component for Ethereum authentication.
- Implemented `SmartAccountAuthPreview` to display JWT cookies.
- Updated `page.tsx` to include `SmartAccountAuth` section.
- Added a code example demonstrating the authentication button usage.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
030521e to
1b64d6e
Compare
title: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):
Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.
How to test
Unit tests, playground, etc.
PR-Codex overview
This PR introduces a
SmartAccountAuthButtoncomponent for Ethereum authentication using smart accounts. It leverages theConnectButtonfromthirdwebto manage user login state and integrates JWT handling in theSmartAccountAuthPreviewcomponent.Detailed summary
SmartAccountAuthButtoncomponent insmart-account-auth-button.tsx.isLoggedIn,login,logout, andgeneratePayload.SmartAccountAuthPreviewto display JWT cookies insmart-account-auth.tsx.Pagecomponent to includeSmartAccountAuth.SmartAccountAuthfunction to render authentication UI and code example.