How to know if user has just signed in or signed up?

I’m using reactjs single app page

After user sign up new account, I want to redirect to update profile

But when user using the interface of Auth0 to sign in or sign up, I have no idea if they sign in or sign up to redirect to the right page.

is there a way to do that in reactjs?