bnoguchi / everyauth

node.js auth package (password, facebook, & more) for Connect and Express apps
http://everyauth.com/
3.49k stars 447 forks source link

Passing redirectPath a function is broken on oauth2 #480

Open yocontra opened 8 years ago

yocontra commented 8 years ago

https://github.com/bnoguchi/everyauth/blob/master/lib/modules/oauth2.js#L305-L310

Does not return this, so the chain is killed. I don't think this works either - this block is confusing and undocumented.

Expected behavior: