express-stormpath
express-stormpath copied to clipboard
postLoginHandler for OAuth2 Password Grant
Fix for issue #507
Thanks @passatgt - though I don't think we want this to be triggered for the refresh_token workflow, only password.
Ok, makes sense, i guess it works like this, i just didn't wanted to duplicate the case, because otherwise its the same.
Can we update this to use the existing switch structure? Thanks!
I had to change it yet again. The account is not returned by the request, added client.getAccount instead.