-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add support for external signer instead of private key #23
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
base: master
Are you sure you want to change the base?
Conversation
6c895d4 to
12f912b
Compare
75359cb to
b4efa15
Compare
9d41632 to
ee9385a
Compare
| expiry, | ||
| appControllerAddress: this.config.appControllerAddress as Address, | ||
| publicClient, | ||
| signMessage: this.signMessage, |
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.
we need to rethink how we handle authenticated requests when using a browser wallet. currently this requests a signature on every call (every 5 seconds in watchUntilRunning). we should cache the signature until expiry and bump the expiry to something longer. should also look into sign-in sessions for the best UX
3423c4f to
8e453c6
Compare
8e453c6 to
f35c9f1
Compare
| interface WalletClientModeOptions extends BaseOptions { | ||
| walletClient: WalletClient; | ||
| publicClient: PublicClient; | ||
| privateKey?: never; |
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.
what does never mean?
| // const userApiClient = new UserApiClient(environmentConfig, privateKey, rpcUrl, clientId); | ||
| // const { environmentConfig, appId, rpcUrl } = options; |
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.
remove?
| // rpcUrl: string; | ||
| // environmentConfig: EnvironmentConfig; | ||
| // appId: Address; | ||
| // clientId?: string; |
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.
remove comments
| // const userApiClient = new UserApiClient(environmentConfig, privateKey, rpcUrl, clientId); | ||
| // const { environmentConfig, appId, rpcUrl } = options; |
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.
remove
No description provided.