nichoth

Results 35 issues of nichoth

# Summary How do I set permissions/authenticate in a test context? This is the repo I am working with: [wn-blob](https://github.com/nichoth/wn-blob/blob/main/test/index.js#L33) . The example uses demo permissions, but returns an 'not...

# Summary see an example -- https://github.com/nichoth/wn-blob/tree/mocha I tried in this branch to make the testing environment identical to the one used in this repo. However, when I `import *...

current docs are here: https://tonicframework.dev/#ssr It would be good to make an example of SSR. The site says to look at the docs website. I see there is a [prerender](https://github.com/socketsupply/tonic-docs/blob/master/bin/build.js#L26)...

QUESTION

I was wondering what the API is for validating ucans. In my little demo app i used something `ucan.isValid` -- https://github.com/nichoth/ucan-demo/blob/main/src/index.js#L296 -- but I don't see it documented anywhere now....

Add an example to the readme that demonstrates connecting two secret-stack instances. TODO How to incorporate permissions? If you run the `example.js` file, it results in an error ``` message:...

It would be helpful to have a more robust example in the readme. Something that shows connecting multiple instances of secret-stack would be ideal. This is a start in that...

Hi. I looked at all the tests and I couldn't find an example of permissions that use something aside from `{ anonymous: { allow: [ 'myMethod' ] } }`. How...

The tests show passing in an option `seed` to `create` -- ```js var alice = create({ seed: seeds.alice }) ``` https://github.com/ssb-js/secret-stack/blob/113efba0cfba73a6eebce8aa01b18d7d6ae5f3d2/test/server.js#L31 but I can't figure out what that is used...

This library does not see 'Authorization' as a valid header. ```ts const authRes = await ky.get({ url: `https://my-api/${apiMethodName}`, headers: { Authorization: ('Basic ' + btoa(kyId + ':' + password)) },...

`hooks` was [exported in the type definition file](https://github.com/developit/htm/blob/master/src/integrations/preact/index.d.ts#L2), but not in the source code.