-
Notifications
You must be signed in to change notification settings - Fork 542
[SDK]: add backend wallets for in app wallet #5878
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
Conversation
🦋 Changeset detectedLatest commit: 70b7b5c The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
packages/thirdweb/src/wallets/in-app/core/authentication/backend.ts
Outdated
Show resolved
Hide resolved
size-limit report 📦
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just missing test coverage
Merge activity
|
--- title: "[SDK] Feature: add backend wallets for in app wallet" --- https://linear.app/thirdweb/issue/TOOL-2884/backend-server-wallets ## Notes for the reviewer This also fixes the cache mechanics for thirdweb clients to include a partial string of the secret key. Was running into an issue where the client was originall instantiated without the secret key and even when a new client with secret key was passed in, we keep falling back to the cached client without secret key ## How to test Add a button on playground with a client that has secret key and create a new backend wallet. <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces support for backend wallet authentication in the `thirdweb` library, allowing applications to connect to wallet accounts programmatically without managing private keys. ### Detailed summary - Added `backend` strategy for wallet authentication. - Updated `authenticate` functions to include backend authentication examples. - Introduced `backendAuthenticate` function for server-side authentication. - Modified `InAppWebConnector` and `InAppNativeConnector` to handle backend authentication. - Enhanced type definitions to include `backend` strategy. - Added tests for `backendAuthenticate` and its integration in connectors. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
70694d1
to
a21ff2c
Compare
--- title: "[SDK] Feature: add backend wallets for in app wallet" --- https://linear.app/thirdweb/issue/TOOL-2884/backend-server-wallets ## Notes for the reviewer This also fixes the cache mechanics for thirdweb clients to include a partial string of the secret key. Was running into an issue where the client was originall instantiated without the secret key and even when a new client with secret key was passed in, we keep falling back to the cached client without secret key ## How to test Add a button on playground with a client that has secret key and create a new backend wallet. <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces support for backend wallets in the `thirdweb` library, allowing applications to authenticate users with a backend strategy, enhancing security by managing wallet access without exposing private keys. ### Detailed summary - Added `backend` strategy for wallet authentication. - Updated `authenticate` function to support `backend` strategy. - Introduced `backendAuthenticate` function for backend authentication. - Updated `InAppWebConnector` and `InAppNativeConnector` to handle `backend` strategy. - Modified type definitions to include `backend` strategy. - Added tests for `backendAuthenticate` and its integration in connectors. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
14d4cb6
to
70b7b5c
Compare
title: "[SDK] Feature: add backend wallets for in app wallet"
https://linear.app/thirdweb/issue/TOOL-2884/backend-server-wallets
Notes for the reviewer
This also fixes the cache mechanics for thirdweb clients to include a partial string of the secret key. Was running into an issue where the client was originall instantiated without the secret key and even when a new client with secret key was passed in, we keep falling back to the cached client without secret key
How to test
Add a button on playground with a client that has secret key and create a new backend wallet.
PR-Codex overview
This PR introduces support for backend wallet authentication in the
thirdweb
library, allowing applications to authenticate users via a backend account without managing private keys.Detailed summary
backend
strategy for wallet authentication.authenticate
function to support backend authentication.InAppWebConnector
andInAppNativeConnector
to handle backend authentication.backendAuthenticate
function for server-side authentication.backendAuthenticate
and related functionality.