@remit/account-worker 0.0.42 → 0.1.0
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
|
@@ -4,7 +4,7 @@ import { tmpdir } from "node:os";
|
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { before, describe, it } from "node:test";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
|
-
import { type Auth, createAuth } from "@remit/auth-service";
|
|
7
|
+
import { type Auth, createAuth, openIdentityStore } from "@remit/auth-service";
|
|
8
8
|
import { auth_session, auth_user } from "@remit/auth-service/schema";
|
|
9
9
|
import { noopLogger } from "@remit/logger";
|
|
10
10
|
import Database from "better-sqlite3";
|
|
@@ -106,12 +106,16 @@ describe("relational deletion capabilities — login user erase", () => {
|
|
|
106
106
|
}
|
|
107
107
|
migrating.close();
|
|
108
108
|
|
|
109
|
-
auth = await createAuth(
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
109
|
+
auth = await createAuth(
|
|
110
|
+
{
|
|
111
|
+
connectionString: filename,
|
|
112
|
+
secret: "relational-auth-secret-0123456789abcdef",
|
|
113
|
+
baseURL: ORIGIN,
|
|
114
|
+
selfSignUpEnabled: true,
|
|
115
|
+
signInEnabled: true,
|
|
116
|
+
},
|
|
117
|
+
await openIdentityStore(filename),
|
|
118
|
+
);
|
|
115
119
|
erased = await signUp(auth, "erased@remit.test");
|
|
116
120
|
kept = await signUp(auth, "kept@remit.test");
|
|
117
121
|
|