koajs / userauth

koa user auth middleware
MIT License
137 stars 18 forks source link

are there any examples beyond the usage example? #4

Closed soundyogi closed 9 years ago

soundyogi commented 9 years ago

I am kinda to stupid ti get ohe usage of this, especially all that redirect url stuff...

Could you provide a little example for idiots?

thx ^^;

fengmk2 commented 9 years ago

Is this https://github.com/koajs/userauth#login-flow not good enough to show how userauth work?

soundyogi commented 9 years ago

no, sorry I dont get it

Why is there redirection to a login path when the user hit $loginPath? Where do I Handle token singing for exanple?

I just dont get it, sorry if this seems stupid.

lukasT commented 9 years ago

neither did I.... +1 for the example for idiots :)

fengmk2 commented 9 years ago

I will draw a flow image which try to explain how userauth work...

fengmk2 commented 9 years ago

soundyogi commented 9 years ago

Thx! That really cleared it up, much more sophisticated than I thougt