Skip to content

Commit

Permalink
jazz-todo: use auth settings so it works in different deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
progrium committed Mar 7, 2024
1 parent db72154 commit 4dbd547
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions internal/app/jazz-todo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
parent.location.href = "/auth/"; // login
}

const authSettings = JSON.parse(localStorage.getItem("auth:settings"));
globalThis.node = await jazz.initNode(
"jazz-todo",
"progrium-dev.us.auth0.com",
"5p3sykNcZdiSTDaAFcuXcmCczdnWA4Qu",
authSettings["domain"],
authSettings["clientId"],
auth.accessToken(),
(account) => {
if (!account.get("root")) {
Expand Down
2 changes: 0 additions & 2 deletions internal/app/jazz-todo/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export class Store {
this.todos = todos;
jazz.autoSub(todos.id, node, (todos) => {
this.todos = todos;
console.log(todos, todos.length);
this.map(e=>console.log(e));
m.redraw();
});
}
Expand Down

0 comments on commit 4dbd547

Please sign in to comment.