Onboarding flow in a NextJs app

Hello
I am pretty much new to auth0 and have some issues displaying an onboarding to users signing up for the first time.

  1. is there a way to detect first time users after auth?

  2. how do I send them to the onboarding route

Thanks

Hi @agujonas13

Welcome to the Auth0 Community!

I’m sorry for the late response to your question.

The main thing that you would be interested is post-login action that contains event.stats.login_count property → Actions Triggers: post-login - Event Object.

Optionally if that’s an option for you you can use a Pre or Post User Registration Action, but they will trigger only for the Database or Poasswordless Connection types.

In terms of redirecting them to the onboarding route you can utilize the the post login action to conditionally redirect user to the external site Login Flow

I hope it will help you
Thanks
Dawid

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.