I tried going throught the tutorial and use node.j...
# spicedb
a
I tried going throught the tutorial and use node.js and I'm having issues, first of all the template code doesn't seem to be right, and then I get:
Copy code
Error: Error: 7 PERMISSION_DENIED: token missing required `view` permission on the requested permissions system: adriangalilea_tutorial
    at callErrorFromStatus (/workspaces/sandbox/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
    at Object.onReceiveStatus (/workspaces/sandbox/node_modules/@grpc/grpc-js/build/src/client.js:192:76)
    at Object.onReceiveStatus (/workspaces/sandbox/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:360:141)
    at Object.onReceiveStatus (/workspaces/sandbox/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)
    at /workspaces/sandbox/node_modules/@grpc/grpc-js/build/src/resolving-call.js:99:78
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at Proxy.makeUnaryRequest (/workspaces/sandbox/node_modules/@grpc/grpc-js/build/src/client.js:160:32)
    at Proxy.checkPermission (/workspaces/sandbox/node_modules/@authzed/authzed-node/dist/src/authzedapi/authzed/api/v1/permission_service.grpc-client.js:84:21)
    at file:///workspaces/sandbox/index.js:28:8
    at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
    at async loadESM (node:internal/process/esm_loader:28:7)
    at async handleMainPromise (node:internal/modules/run_main:113:12) {
  code: 7,
  details: 'token missing required `view` permission on the requested permissions system: adriangalilea_tutorial',
  metadata: Metadata {
    internalRepr: Map(2) {
      'io.spicedb.respmeta.dispatchedoperationscount' => [Array],
      'io.spicedb.respmeta.cachedoperationscount' => [Array]
    },
    options: {}
  }
}