Sandbox credentials
Use the built-in test credentials for local development. Import them from the @helix-id/node/testing sub-path.
js
import { createAuthUrl } from "@helix-id/node";
import { HELIX_TEST_SPACE_ID, HELIX_TEST_SECRET, HELIX_TEST_CALLBACK_URL } from "@helix-id/node/testing";
const { url, nonce, sig } = await createAuthUrl({
spaceId: HELIX_TEST_SPACE_ID,
state: "test",
origin: new URL(HELIX_TEST_CALLBACK_URL).origin,
secret: HELIX_TEST_SECRET,
env: "sandbox",
});| Credential | Value |
|---|---|
| Space ID | a1b2c3d4-e5f6-7890-abcd-ef1234567890 |
| Secret | tk_test_hx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| Callback URL | http://localhost:8080/helix/callback |