krakenjs / kraken-example-with-passport

An example integrating kraken with passport authentication
53 stars 33 forks source link

Redirect Loop #14

Closed JoaoCnh closed 8 years ago

JoaoCnh commented 8 years ago

Hey I just started trying Kraken out and I'm seeing this repo to config passport into Kraken.

I've pretty much figured it out but now isAuthenticated is called when I go to root route ('/') and even on /login, which it shouldn't.

Is there something I'm missing? Where can I find the file where we control this?

grawk commented 8 years ago

isAuthenticated is added to the middleware chain here: https://github.com/krakenjs/kraken-example-with-passport/blob/master/config/config.json#L89-L96