Skip to content

Commit

Permalink
feat: update example-dapp to use env variables for SDK intialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
ditoglez committed Sep 4, 2024
1 parent 22da43b commit 7957df6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/idos-example-dapp/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@ const connectWallet = {
*
*/
const idos = await idOS.init({
nodeUrl: import.meta.env.VITE_IDOS_NODE_URL,
dbId: import.meta.env.VITE_IDOS_NODE_KWIL_DB_ID,
enclaveOptions: {
container: "#idos-container",
throwOnUserCancelUnlock: false,
url: import.meta.env.VITE_IDOS_ENCLAVE_URL,
},
});
window.idos = idos;
Expand Down

0 comments on commit 7957df6

Please sign in to comment.