paulvanbladel / aurelia-auth

:key: Authentication plugin for aurelia
200 stars 74 forks source link

(Don't) redirect on login #150

Open finikm opened 7 years ago

finikm commented 7 years ago

Is it possible to suppress the redirect after the login; When I use the authenticate function, I pass the current url as the redirect url, thus avoiding any redirect, but when the user uses the login function (username/password), there's no such option. If is not, is it possible to add the same functionality?

I guess I could use fetch to do the login, save the token manually using the setToken function added few days ago, but I would prefer a cleaner way.

paulvanbladel commented 7 years ago

thanks, I'll check this.