zetkin / zetkin.js

Javascript SDK for the Zetkin Platform API
0 stars 2 forks source link

Force anonymous #28

Open richardolsson opened 6 years ago

richardolsson commented 6 years ago

Add an option (per request) to force anonymous requests, i.e. to not sign them using any available token. Could be something like:

// Options to resource()
Z.resource('users', { forceAnonymous: true })
    .post(myData);

// Or, method similar to meta()
Z.resource('users')
    .forceAnonymous()
    .post(myData);