Page MenuHomePhabricator

D10741.diff
No OneTemporary

D10741.diff

diff --git a/lib/actions/user-actions.js b/lib/actions/user-actions.js
--- a/lib/actions/user-actions.js
+++ b/lib/actions/user-actions.js
@@ -31,7 +31,7 @@
UpdateUserAvatarResponse,
} from '../types/avatar-types.js';
import type { RawEntryInfo, CalendarQuery } from '../types/entry-types.js';
-import type { IdentityRegisterResult } from '../types/identity-service-types.js';
+import type { IdentityAuthResult } from '../types/identity-service-types.js';
import type {
RawMessageInfo,
MessageTruncationStatuses,
@@ -381,7 +381,7 @@
function useIdentityRegister(): (
username: string,
password: string,
-) => Promise<IdentityRegisterResult> {
+) => Promise<IdentityAuthResult> {
const client = React.useContext(IdentityClientContext);
const identityClient = client?.identityClient;
return React.useCallback(
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
@@ -53,7 +53,7 @@
+registerUser?: (
username: string,
password: string,
- ) => Promise<IdentityRegisterResult>;
+ ) => Promise<IdentityAuthResult>;
}
export type IdentityServiceAuthLayer = {
@@ -76,7 +76,7 @@
+walletAddress?: ?string,
};
-export type IdentityRegisterResult = {
+export type IdentityAuthResult = {
+userID: string,
+accessToken: string,
+username: string,
diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js
--- a/lib/types/redux-types.js
+++ b/lib/types/redux-types.js
@@ -44,7 +44,7 @@
CalendarThreadFilter,
SetCalendarDeletedFilterPayload,
} from './filter-types.js';
-import type { IdentityRegisterResult } from './identity-service-types.js';
+import type { IdentityAuthResult } from './identity-service-types.js';
import type { IntegrityStore } from './integrity-types.js';
import type {
KeyserverStore,
@@ -387,7 +387,7 @@
}
| {
+type: 'IDENTITY_REGISTER_SUCCESS',
- +payload: IdentityRegisterResult,
+ +payload: IdentityAuthResult,
+loadingInfo: LoadingInfo,
}
| {

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 10:12 AM (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2522144
Default Alt Text
D10741.diff (2 KB)

Event Timeline