express-stormpath icon indicating copy to clipboard operation
express-stormpath copied to clipboard

postLoginHandler for OAuth2 Password Grant

Open passatgt opened this issue 9 years ago • 4 comments

Fix for issue #507

passatgt avatar Aug 24 '16 20:08 passatgt

Thanks @passatgt - though I don't think we want this to be triggered for the refresh_token workflow, only password.

robertjd avatar Aug 24 '16 20:08 robertjd

Ok, makes sense, i guess it works like this, i just didn't wanted to duplicate the case, because otherwise its the same.

passatgt avatar Aug 24 '16 20:08 passatgt

Can we update this to use the existing switch structure? Thanks!

robertjd avatar Aug 24 '16 22:08 robertjd

I had to change it yet again. The account is not returned by the request, added client.getAccount instead.

passatgt avatar Aug 25 '16 19:08 passatgt