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 need to perform some client-side operations after a user has signed in for the first time (but not necessary a new user) , like fetching favourite items from an external API and adding them local storage etc. I thought about redirecting the users to a specific page (after sign-in) where I could run my code, but I really don't want to interrupt the user experience by not redirecting them back to where they came from before signing in. One solution could might be a new status that could be signed-in, which we could check similar to authenticated, unauthenticated, loading, but I really don't know.. how do you recommend doing something like this?
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
Uh oh!
There was an error while loading. Please reload this page.
-
I need to perform some client-side operations after a user has signed in for the first time (but not necessary a new user) , like fetching favourite items from an external API and adding them local storage etc. I thought about redirecting the users to a specific page (after sign-in) where I could run my code, but I really don't want to interrupt the user experience by not redirecting them back to where they came from before signing in. One solution could might be a new
status
that could besigned-in
, which we could check similar toauthenticated, unauthenticated, loading
, but I really don't know.. how do you recommend doing something like this?Beta Was this translation helpful? Give feedback.
All reactions