@abraca/dabra 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/AbracadabraClient.ts +3 -0
package/package.json
CHANGED
package/src/AbracadabraClient.ts
CHANGED
|
@@ -175,6 +175,8 @@ export class AbracadabraClient {
|
|
|
175
175
|
displayName?: string;
|
|
176
176
|
email?: string;
|
|
177
177
|
inviteCode?: string;
|
|
178
|
+
/** X25519 encryption public key paired with the Ed25519 identity key. Required for E2E channels. */
|
|
179
|
+
x25519Key?: string;
|
|
178
180
|
}): Promise<UserProfile> {
|
|
179
181
|
const username = opts.username ?? `user-${opts.publicKey.slice(0, 8)}`;
|
|
180
182
|
return this.request<UserProfile>("POST", "/auth/register", {
|
|
@@ -185,6 +187,7 @@ export class AbracadabraClient {
|
|
|
185
187
|
displayName: opts.displayName,
|
|
186
188
|
email: opts.email,
|
|
187
189
|
inviteCode: opts.inviteCode,
|
|
190
|
+
x25519Key: opts.x25519Key,
|
|
188
191
|
},
|
|
189
192
|
auth: false,
|
|
190
193
|
});
|