Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33224221
D11767.1768559472.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D11767.1768559472.diff
View Options
diff --git a/native/account/fullscreen-siwe-panel.react.js b/native/account/fullscreen-siwe-panel.react.js
--- a/native/account/fullscreen-siwe-panel.react.js
+++ b/native/account/fullscreen-siwe-panel.react.js
@@ -17,7 +17,6 @@
import {
useLegacySIWEServerCall,
useIdentityWalletLogInCall,
- useIdentityWalletRegisterCall,
} from './siwe-hooks.js';
import SIWEPanel from './siwe-panel.react.js';
import { commRustModule } from '../native-modules.js';
@@ -27,6 +26,7 @@
} from '../navigation/route-names.js';
import { UnknownErrorAlertDetails } from '../utils/alert-messages.js';
import Alert from '../utils/alert.js';
+import { defaultURLPrefix } from '../utils/url-utils.js';
type Props = {
+goBackToPrompt: () => mixed,
@@ -46,7 +46,8 @@
const registrationContext = React.useContext(RegistrationContext);
invariant(registrationContext, 'registrationContext should be set');
- const { setSkipEthereumLoginOnce } = registrationContext;
+ const { setSkipEthereumLoginOnce, register: registrationServerCall } =
+ registrationContext;
const getEthereumAccountFromSIWEResult =
useGetEthereumAccountFromSIWEResult();
@@ -71,7 +72,6 @@
const legacySiweServerCall = useLegacySIWEServerCall();
const identityWalletLogInCall = useIdentityWalletLogInCall();
- const identityWalletRegisterCall = useIdentityWalletRegisterCall();
const successRef = React.useRef(false);
const dispatch = useDispatch();
const onSuccess = React.useCallback(
@@ -86,7 +86,18 @@
} else if (enableNewRegistrationMode) {
await onAccountDoesNotExist(result);
} else {
- await identityWalletRegisterCall(result);
+ await registrationServerCall({
+ coolOrNerdMode: 'cool',
+ keyserverURL: defaultURLPrefix,
+ farcasterID: null,
+ accountSelection: {
+ accountType: 'ethereum',
+ ...result,
+ avatarURI: null,
+ },
+ avatarData: null,
+ clearCachedSelections: () => {},
+ });
}
} catch (e) {
Alert.alert(
@@ -129,7 +140,7 @@
},
[
identityWalletLogInCall,
- identityWalletRegisterCall,
+ registrationServerCall,
goBackToPrompt,
dispatch,
legacySiweServerCall,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 16, 10:31 AM (5 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5943581
Default Alt Text
D11767.1768559472.diff (2 KB)
Attached To
Mode
D11767: [native] Use useRegistrationServerCall in FullscreenSIWEPanel for identity registration
Attached
Detach File
Event Timeline
Log In to Comment