Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3281764
D10741.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D10741.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D10741: [lib] rename IdentityRegisterResult -> IdentityAuthResult
Attached
Detach File
Event Timeline
Log In to Comment