You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the documentation should describe the function signature, and what it expects as a response such as:
Restivus.configure
auth:
user: ->
token = @.request.headers["x-auth-token"]
... Do something with token and extract your user...
if notAllowed(user) throw new Meteor.Error("Unauthorized")
return user
The text was updated successfully, but these errors were encountered:
jazeee
changed the title
Complete auth should work
Complete auth should be documented a little more
Jul 1, 2015
I agree that the auth section of the docs needs some improvement. I made a small update for #91, but the custom auth needs to be explained there as well. I'll keep this open until it's updated.
EDIT:
I was wrong about the original ticket.
** Deleted original request. **
I believe the documentation should describe the function signature, and what it expects as a response such as:
The text was updated successfully, but these errors were encountered: