@structured-id/ui-core 4.3.0 → 4.3.1
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
CHANGED
|
@@ -208,10 +208,9 @@ describe("createAuth register", () => {
|
|
|
208
208
|
RESPONSE,
|
|
209
209
|
);
|
|
210
210
|
expect(api.regFinish).toHaveBeenCalledWith(OPERATION, RECORD, WIRE_PROOF);
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
});
|
|
211
|
+
// Regression: the result passed the server's Profile identifier on to
|
|
212
|
+
// the application; even a server still sending one is not forwarded.
|
|
213
|
+
expect(result).toEqual({ credentialId: "cred-uuid" });
|
|
215
214
|
});
|
|
216
215
|
|
|
217
216
|
// A password the circuit cannot hold has no history request: nothing is
|
|
@@ -40,9 +40,11 @@ export interface LoginResult {
|
|
|
40
40
|
expiresIn: number;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* A registration's password credential. No Profile identifier: the client
|
|
45
|
+
* signs in after registering and works through its session.
|
|
46
|
+
*/
|
|
44
47
|
export interface RegisterResult {
|
|
45
|
-
profileId: string;
|
|
46
48
|
credentialId: string;
|
|
47
49
|
}
|
|
48
50
|
|
|
@@ -394,10 +396,7 @@ export function createAuth(loadClient: ZkppClientLoader) {
|
|
|
394
396
|
done.proof,
|
|
395
397
|
);
|
|
396
398
|
plan.finish();
|
|
397
|
-
return {
|
|
398
|
-
profileId: finished.profileId,
|
|
399
|
-
credentialId: finished.credentialId,
|
|
400
|
-
};
|
|
399
|
+
return { credentialId: finished.credentialId };
|
|
401
400
|
}
|
|
402
401
|
|
|
403
402
|
/**
|