You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to set a custom flash message before passing request data to authenticator.authenticate, I am unsure of how to do that without re-implementing the logic of success function in strategy.ts.
For my use case, the user is able to update their user details information , (ex name, email, etc.). If so, I would like to re-log them in (update their session user data) and at the same time set a session flash message for the next view load.
I don't see any other way of doing this other than copying and pasting the logic from strategy.ts in my own action handler.
Is there any other advisable way for refreshing user data?
Thank you for any assistance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to set a custom flash message before passing request data to
authenticator.authenticate
, I am unsure of how to do that without re-implementing the logic ofsuccess
function instrategy.ts
.For my use case, the user is able to update their user details information , (ex name, email, etc.). If so, I would like to re-log them in (update their session user data) and at the same time set a session flash message for the next view load.
I don't see any other way of doing this other than copying and pasting the logic from
strategy.ts
in my own action handler.Is there any other advisable way for refreshing user data?
Thank you for any assistance.
Beta Was this translation helpful? Give feedback.
All reactions