Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33316649
D11590.1768829620.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
D11590.1768829620.diff
View Options
diff --git a/lib/types/identity-service-types.js b/lib/types/identity-service-types.js
--- a/lib/types/identity-service-types.js
+++ b/lib/types/identity-service-types.js
@@ -119,6 +119,9 @@
// Only a primary device can initiate account deletion, and web cannot be a
// primary device
+deleteWalletUser?: () => Promise<void>;
+ // Only a primary device can initiate account deletion, and web cannot be a
+ // primary device
+ +deletePasswordUser?: (password: string) => Promise<void>;
+logOut: () => Promise<void>;
+getKeyserverKeys: string => Promise<DeviceOlmOutboundKeys>;
+registerPasswordUser?: (
diff --git a/native/identity-service/identity-service-context-provider.react.js b/native/identity-service/identity-service-context-provider.react.js
--- a/native/identity-service/identity-service-context-provider.react.js
+++ b/native/identity-service/identity-service-context-provider.react.js
@@ -85,6 +85,19 @@
} = await getAuthMetadata();
return commRustModule.deleteWalletUser(userID, deviceID, token);
},
+ deletePasswordUser: async (password: string) => {
+ const {
+ deviceID,
+ userID,
+ accessToken: token,
+ } = await getAuthMetadata();
+ return commRustModule.deletePasswordUser(
+ userID,
+ deviceID,
+ token,
+ password,
+ );
+ },
logOut: async () => {
const {
deviceID,
diff --git a/web/grpc/identity-service-client-wrapper.js b/web/grpc/identity-service-client-wrapper.js
--- a/web/grpc/identity-service-client-wrapper.js
+++ b/web/grpc/identity-service-client-wrapper.js
@@ -27,8 +27,8 @@
deviceOlmInboundKeysValidator,
userDeviceOlmInboundKeysValidator,
type FarcasterUser,
+ farcasterUsersValidator,
} from 'lib/types/identity-service-types.js';
-import { farcasterUsersValidator } from 'lib/types/identity-service-types.js';
import { getMessageForException } from 'lib/utils/errors.js';
import { assertWithValidator } from 'lib/utils/validation-utils.js';
diff --git a/web/grpc/identity-service-context-provider.react.js b/web/grpc/identity-service-context-provider.react.js
--- a/web/grpc/identity-service-context-provider.react.js
+++ b/web/grpc/identity-service-context-provider.react.js
@@ -118,6 +118,7 @@
const client = React.useMemo<IdentityServiceClient>(() => {
return {
deleteWalletUser: proxyMethodToWorker('deleteWalletUser'),
+ deletePasswordUser: proxyMethodToWorker('deletePasswordUser'),
logOut: proxyMethodToWorker('logOut'),
getKeyserverKeys: proxyMethodToWorker('getKeyserverKeys'),
getOutboundKeysForUser: proxyMethodToWorker('getOutboundKeysForUser'),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 1:33 PM (15 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5956608
Default Alt Text
D11590.1768829620.diff (2 KB)
Attached To
Mode
D11590: add deletePasswordUser to IdentityServiceClient
Attached
Detach File
Event Timeline
Log In to Comment