Thank you @dan! Will that approach work when user signs up with FB/Google/Apple/etc identity providers?
I figured out another way to solve my problem... and that is to rely on state query param which would redirect the user to /acceptinvite/123 post signup which would update user profile and then redirect the user to the default logged in page. And this approach works with social logins also. It's not ideal, but accomplishes the goal