-
Notifications
You must be signed in to change notification settings - Fork 127
feat: React Native SIWE & account upgrade support #1000
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: main
Are you sure you want to change the base?
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
commit: |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
4f5fc5d to
a2ab290
Compare
7993dd8 to
5e03969
Compare
5e03969 to
6b0830a
Compare
| }) | ||
|
|
||
| return { message, signature: signature_erc8010 } | ||
| // If authUrl is provided, authenticate with the server |
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.
Confirming that we don’t run into the double authenticate issue when using with dialog?
jxom
left a comment
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.
Looks good as long as it still works with existing auth examples and no double authenticate.
9fb5209 to
c24ecf9
Compare
96c21a8 to
126565f
Compare
• SDK
wallet_prepareAccountUpgrade), access towebauthn.createmust be present in the environment, regardless of mode (dialog or not). To cover this, I added a React Native passkey adapter that wiresreact-native-passkeysinto the default relay fallback, handles RP host, and normalizes WebAuthn payload encodingsrc/core/internal/siwe.ts), normalizing domains and preserving existing the React Native bridge and storage cache, preventing fallback to navigator.credentials and caching passkey verification for follow-up signatures.• Dialog
wallet_connectroute to carry the originalsignInWithEthereumobject, filling in domain/URI defaults without destructuring into{}. Also fixes schema error introduced in the prior PR•
react-native-relay-modeexample:Deliverables: