Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3496104
D12549.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
733 B
Referenced Files
None
Subscribers
None
D12549.diff
View Options
diff --git a/web/account/siwe-login-form.react.js b/web/account/siwe-login-form.react.js
--- a/web/account/siwe-login-form.react.js
+++ b/web/account/siwe-login-form.react.js
@@ -205,7 +205,14 @@
SIWEMessageTypes.MSG_AUTH,
);
const message = createSIWEMessage(address, statement, siweNonce);
- const signature = await signer.signMessage({ message });
+ let signature;
+ try {
+ signature = await signer.signMessage({ message });
+ } catch (e) {
+ // If we fail to get the signature (e.g. user cancels the request), we
+ // should return immediately
+ return;
+ }
if (usingCommServicesAccessToken) {
await attemptWalletLogIn(address, message, signature);
} else {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 11:20 AM (13 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2681553
Default Alt Text
D12549.diff (733 B)
Attached To
Mode
D12549: [web] fix uncaught exception when user cancels SIWE
Attached
Detach File
Event Timeline
Log In to Comment