Checking if user has account before buying

Hello peeps,

I have a booking platform and I want to know how I can check if the user is signed in or not at the booking stage, when choosing the number of days,etc .
If the user is not, then I want to show the sign in or sign up popups or direct them to the signup page.

Then after the user creates an account or login (depending on the case) , they should be redirected back to the booking page.

Use expressions current user is logged in as conditionals

1 Like

Thanks a lot! Should I do that with a front end flow?

whichever flow you need to check if the user is logged in or not, so just put it where you are going to determine if you show sign in or signup popup.

Yes. I got it, but the check will be done in the flow and not in a conditional window right?

For this, usually you want to check if there’s a user session or an auth token when they get to the booking page. If not, show the sign-in/sign-up popup or redirect them to the signup page.

1 Like

The conditional is on the action of show popup. The way I usually do it is a single popup with two modes, either login or signup, and when I show popup I set mode conditionally.

1 Like