@tinycloud/cli 1.5.1-beta.2 → 1.5.1-beta.4
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/dist/courier-entry.js +3 -1
- package/dist/courier-entry.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +5 -5
package/dist/courier-entry.js
CHANGED
|
@@ -11016,7 +11016,7 @@ import fs19 from "fs";
|
|
|
11016
11016
|
import path21 from "path";
|
|
11017
11017
|
import { createHash as createHash4, randomBytes as randomBytes5 } from "crypto";
|
|
11018
11018
|
import { checkSecureDir, ensureSecureDir as ensureSecureDir2 } from "@tinycloud/node-sdk/credential-pending-store";
|
|
11019
|
-
import { verifyStoredEmailProof } from "@tinycloud/node-sdk/credentials";
|
|
11019
|
+
import { isTicketEmailProofResult, verifyStoredEmailProof } from "@tinycloud/node-sdk/credentials";
|
|
11020
11020
|
import { createStoredCredentialRecord, EMAIL_CREDENTIAL_MAX_AGE_SECONDS } from "@tinycloud/sdk-core";
|
|
11021
11021
|
var DIR_NAME = "credentials";
|
|
11022
11022
|
var EXPIRY_MARGIN_MS = 6e4;
|
|
@@ -11140,6 +11140,8 @@ var StoredCredentialSource = class {
|
|
|
11140
11140
|
}
|
|
11141
11141
|
async store(input) {
|
|
11142
11142
|
const now = input.now ?? /* @__PURE__ */ new Date();
|
|
11143
|
+
if (!isTicketEmailProofResult(input.result))
|
|
11144
|
+
throw new CourierError("credential-record-invalid", "Only a ticket email credential is stored here.");
|
|
11143
11145
|
const base2 = await createStoredCredentialRecord({
|
|
11144
11146
|
verified: input.result.verified,
|
|
11145
11147
|
ownerDid: input.holderDid,
|