realworld-starter-kit
realworld-starter-kit copied to clipboard
Auth Routes
- [x] Login
- [ ] Login And Remeber Token
- [x] Register
- [ ] Current User
- [ ] Update User
Curious if these were are suppose to be swapped around. https://github.com/JackyChiu/realworld-starter-kit/blob/master/main.go#L24-L25 Accessing users require the user to be signed in but logging in shouldn't require the token?
@stanzheng nice catch, that should be swapped
Hey, @stanzheng and @adelowo! Yep, I definitely got that swapped up, thanks for catching that! I actually need to structure the handlers better as well since I have my Registration
(which doesn't require auth) in my UsersRouter
If you guys have any suggestions for any parts of the design, feel free to drop me a line anytime!
Yeah! I'm waiting for the auth to be a bit wired up and maybe ill be able to jump in on something. thanks for spear heading this!
Hi I notice that the authorization header should be Token
not Bearer
according to the Api Specs
Authentication Header: Authorization: Token jwt.token.here
@guillaumemaka Yep I'm fixing that in the auth
package, the spec was recently changed