Merge branch 'master' into feature/remoting-connector
This commit is contained in:
commit
c7eba32ac5
|
@ -179,9 +179,9 @@ User.afterRemote('**', function (ctx, user, next) {
|
||||||
|
|
||||||
Remote hooks are provided with a Context `ctx` object which contains transport specific data (eg. for http: `req` and `res`). The `ctx` object also has a set of consistent apis across transports.
|
Remote hooks are provided with a Context `ctx` object which contains transport specific data (eg. for http: `req` and `res`). The `ctx` object also has a set of consistent apis across transports.
|
||||||
|
|
||||||
#### ctx.user
|
#### ctx.req.accessToken
|
||||||
|
|
||||||
A `Model` representing the user calling the method remotely. **Note:** this is undefined if the remote method is not invoked by a logged in user.
|
The `accessToken` of the user calling the method remotely. **Note:** this is undefined if the remote method is not invoked by a logged in user (or other principal).
|
||||||
|
|
||||||
#### ctx.result
|
#### ctx.result
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"Platform",
|
"Platform",
|
||||||
"mBaaS"
|
"mBaaS"
|
||||||
],
|
],
|
||||||
"version": "1.7.6",
|
"version": "1.7.7",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha -R spec"
|
"test": "mocha -R spec"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue