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 { +) => Promise { 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; + ) => Promise; } 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, } | {