skygear-SDK-JS
skygear-SDK-JS copied to clipboard
Skygear SDK for JavaScript
A user of the SDK has the following code: ``` const handler = skygear.auth.onUserChanged(function (user) { throw 'error'; }); ``` This snippet cause the error to thrown to the loginWithUsername...
Developers will turn off the autoPubsub and manually connect it. Here is the example code ``` skygear.pubsub.autoPubsub = false; skygear.config({ 'endPoint': 'http://localhost:3000/', // trailing slash is required 'apiKey': 'secretOURD', });...
refs: https://github.com/SkygearIO/iot/commit/a955e7bca29459b4cf81125fa0f0b965e37b5484 I believe it related to the runtime, if it is on skygear.io deployment. The installed `skygear` copy is different from the running `skyegar-node` copy. - Skygear SDK Date/Version:...
In current implementation, `acl.setNoAccessForUser(userID)` and `acl.setNoAccessForRole(someRole)` does not deny the access of specific user / role. What it actually does is remove the access control entry for specific user /...
I couldn't find this issue mentioned anywhere so I'm opening one... do correct me if there's already an issue for this. String concatenation is used in most places to handle...
When calling `setRecordDefaultAccess` the SDK should remember the settings and apply default ACL settings to record *when needed* (see below). The default ACL settings does not need to persist across...
Right now lambda / handler access can only be controlled using `authRequired` and `userRequired`. It would be nice to be able to control access by user role just like records.
Currently a lambda handler can access the requesting user's ID using the context. However, it's not possible to access the user object since we can't query user by ID in...
e.g. schema change event should notify all instances, that needs to be further discussed