add passkey support
This commit is contained in:
+4
-1
@@ -42,7 +42,7 @@ async function startServer() {
|
||||
.slice(2)}.db`,
|
||||
);
|
||||
const port = 20000 + Math.floor(Math.random() * 30000);
|
||||
const baseURL = `http://127.0.0.1:${port}`;
|
||||
const baseURL = `http://localhost:${port}`;
|
||||
|
||||
const child = spawn(
|
||||
path.resolve(__dirname, "..", "target", "debug", "sustenance"),
|
||||
@@ -53,6 +53,9 @@ async function startServer() {
|
||||
DATABASE_PATH: dbPath,
|
||||
REGISTRATION_MODE: "open",
|
||||
BIND_ADDRESS: `127.0.0.1:${port}`,
|
||||
PUBLIC_BASE_URL: baseURL,
|
||||
// WebAuthn requires a valid domain for the RP ID; localhost is allowed.
|
||||
RP_ID: "localhost",
|
||||
// Point SEED_CONFIG at a nonexistent file so no default user is created.
|
||||
SEED_CONFIG: path.join(os.tmpdir(), "sustenance-e2e-no-seed.json"),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user