TeamMartinez / YOLO-api

REST API for the yolo project (GitHub Auth)
http://vm344a.se.rit.edu
1 stars 1 forks source link

Add Login Cookie #21

Closed vuzDylan closed 8 years ago

vuzDylan commented 8 years ago

Please add a cookie with information {auth: true} if the current user is authed or {auth: false} if I am not

jdw6359 commented 8 years ago

Can you provide more information about how I will be providing this cookie to you?

I am having trouble understanding how I will be returning this cookie in addition to the responses I would typically give you.

If you are expecting a single endpoint, that may be easier to build. I think that GET @ /api/verify_authentication would be a good place to start.

Remember that any request after the initial page load will return a 403 if the user is not authorized, in which case you would be able to handle by making the redirect yourself.