Skip to content

Commit

Permalink
Fix/remove ctx.user documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ritch committed Apr 15, 2014
1 parent 5ffc0e8 commit 9f8ec48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api-model-remote.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

#### 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

Expand Down

0 comments on commit 9f8ec48

Please sign in to comment.