stormpath / express-stormpath

Build simple, secure web applications with Stormpath and Express!
http://docs.stormpath.com/nodejs/express/
Apache License 2.0
325 stars 111 forks source link

postLoginHandler #571

Closed Adam-Burke closed 7 years ago

Adam-Burke commented 7 years ago

Hi,

I'm enjoying using this library and stormpath in general.

I'm trying to integrate firebase into express stormpath by creating custom firebase tokens and ideally passing them back to the user in the response of the oauth/token route. I'm using password grant token oauth2. It seems that the postLoginHandler hook is called after the response has already been returned to the user. Does that mean I'll need to request the firebase token in a seperate request?

Thank you ,

Adam

mdeggies commented 7 years ago

Hey @Adam-Burke- the flow for both login and registration is pre-handler -> request to Stormpath -> post-handler. What exactly is the firebase token you're generating and what are you trying to do with it?