DenoKV - Missing DENO_KV_ACCESS_TOKEN environment
Can't find much info in the docs to be able to set this, where do we set it? I tried to pass a second option to the DenoKV() to set the accessToken, but it didn't work.
2 Replies
DENO_KV_ACCESS_TOKEN
is an environment variable. You can set it the same you would when running any task in the CLI. On POSIX systems, it'd be run like so:
Similarly, on Windows using set
.@iuioiua is the any chance we could get this setup to be passed to Deno.openKV() as an argument, we have multiple kv stores and would be much easier to manage the config /env in code....
Deno.openKv({}, {token: abc123})
This would be much nicer.
This way we could explicitly set which KV backend we are connecting to
Nope its not working
Yep latest canary not working!