-
Notifications
You must be signed in to change notification settings - Fork 9
Add postVerificationHandler #6
Comments
Will definitely add this =) Thanks for the suggestion! |
Is there a way that i can do postLoginHandler? |
There is already a postLoginHandler you can use, @mody25egy: https://docs.stormpath.com/nodejs/express/product.html#post-login |
@rdegges that's for the other library :) @mody25egy - unfortunately I don't see a workaround to get a post login handler in this library :( if an idea comes to me, I'll let you know Also: we're about to release a new version of the other library (coming in the next few biz days), and it might actually make sense to switch over to that one once it's ready. Can you tell me more about your use case for this library? |
@rdegges - I was specifically asking to have the same feature as the other library you mentioned. @robertjd - Man!!! I will be looking forward for the new updates in the other library "Express-Stormpath". The reason i am using this library "stormpath-sdk-express" because of the stormpath-sdk-angular library. I tried to use it with Express-Stormpath but they didn't like each other that much :(. My goal is redirect users to different views once they login based on their groups, example, Admin goes to the admin-dashboard view, sales to sales-dashboard view, etc.. In the angular sdk you have the defaultPostLoginState maybe we can do something like PostLoginState:{ }, Any how thank you both for your prompt response and this amazing library 👍 |
It would be useful to have a postVerificationHandler callback to perform account related tasks that should occur when a new account is created. postRegistrationHandler can be used as an alternative but for some things post-verification would be the right time.
The text was updated successfully, but these errors were encountered: