sllewely / event_buddies

2 stars 0 forks source link

Token auth #59

Closed happler closed 5 years ago

happler commented 5 years ago

This pr gives us a backend unprotected route, so that we can send out JS bundle without getting redirected by our authenticate before action.

From there, it re-implements fronted protected routes, and modifies our frontend login/signup pages and utils to hit the correct endpoints with the correct json. While this works, there are two issues #57 and #58 that will need to be addressed. Neither should be particularly difficult, though.

sllewely commented 5 years ago

yeah :D :D

umerkulovb commented 5 years ago

@happler When signing user up a registration hash is being sent alongside user. Is there a reason for that?

happler commented 5 years ago

@happler When signing user up a registration hash is being sent alongside user. Is there a reason for that?

I've looked through all my stuff, and don't see where that's coming in at all; can you show me where you're seeing it?

sllewely commented 5 years ago

@happler sorry for not seeing this sooner. We are receiving it from front end when signing up a user. Perhaps you can see it with a debugger in the registration controller

happler commented 5 years ago

@sllewely @umerkulovb I just checked at the point of firing the fetch, and it's not there, but I'm seeing it in my server logs. Perhaps it's being added by some middleware, like Warden?