diff --git a/keyserver/addons/rust-node-addon/rust-binding-types.js b/keyserver/addons/rust-node-addon/rust-binding-types.js --- a/keyserver/addons/rust-node-addon/rust-binding-types.js +++ b/keyserver/addons/rust-node-addon/rust-binding-types.js @@ -1,11 +1,7 @@ // @flow import type { SignedIdentityKeysBlob } from 'lib/types/crypto-types.js'; - -type UserLoginResponse = { - +userId: string, - +accessToken: string, -}; +import type { UserLoginResponse } from 'lib/types/identity-service-types.js'; type InboundKeyInfoResponse = { +payload: string, diff --git a/lib/types/identity-service-types.js b/lib/types/identity-service-types.js new file mode 100644 --- /dev/null +++ b/lib/types/identity-service-types.js @@ -0,0 +1,6 @@ +//@flow + +export type UserLoginResponse = { + +userId: string, + +accessToken: string, +};