Skip to content
Snippets Groups Projects
Commit 0ee07301 authored by Mateusz Tyszczak's avatar Mateusz Tyszczak :scroll: Committed by Bartek Wrona
Browse files

Copy hb-auth worker to signature-extension example

parent b54833a9
No related branches found
No related tags found
1 merge request!292Add other signature providers
......@@ -2,5 +2,6 @@
"extends": "@parcel/config-default",
"transformers": {
"*.{ts,tsx}": ["@parcel/transformer-typescript-tsc"]
}
},
"reporters": ["...", "parcel-reporter-static-files-copy"]
}
\ No newline at end of file
......@@ -25,13 +25,17 @@
"buffer": "^5.5.0||^6.0.0",
"events": "^3.1.0",
"parcel": "^2.14.2",
"parcel-reporter-static-files-copy": "^1.5.3",
"process": "^0.11.10",
"stream-browserify": "^3.0.0",
"string_decoder": "^1.3.0"
},
"staticFiles": [
{ "staticPath": "node_modules/@hiveio/hb-auth/dist" }
],
"pnpm": {
"overrides": {
"axios": "^1.8.4"
"axios": "^1.8.4"
}
},
"packageManager": "pnpm@10.0.0+sha512.b8fef5494bd3fe4cbd4edabd0745df2ee5be3e4b0b8b08fa643aa3e4c6702ccc0f00d68fa8a8c9858a735a0032485a44990ed2810526c875e416f001b17df12b"
......
../node_modules/@hiveio/hb-auth/dist/worker.js
\ No newline at end of file
......@@ -103,7 +103,7 @@
const hbAuthClient = new OfflineClient({
chainId: testEnv.configuredChain.chainId,
node: testEnv.configuredChain.endpointUrl,
workerUrl: new URL('./hb-auth-worker.js', import.meta.url),
workerUrl: './worker.js',
sessionTimeout: 900
});
const hbAuthProvider = await HBAuthProvider.for(hbAuthClient);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment