From 9f8ec484ea92b66b76df25a22fd6a80cb6020b0a Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Tue, 15 Apr 2014 09:19:05 -0700 Subject: [PATCH] Fix/remove ctx.user documentation --- docs/api-model-remote.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-model-remote.md b/docs/api-model-remote.md index 9098f275..c4dfe3ca 100644 --- a/docs/api-model-remote.md +++ b/docs/api-model-remote.md @@ -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