# Onboarding flow in a NextJs app

**URL:** <https://community.auth0.com/t/onboarding-flow-in-a-nextjs-app/124017>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [January 3, 2024, 2:51am UTC](https://community.auth0.com/t/onboarding-flow-in-a-nextjs-app/124017 "2024-01-03T02:51:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agujonas13](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/agujonas13/32/53625_2.png) [@agujonas13](https://community.auth0.com/u/agujonas13)\
**Post date:** [January 3, 2024, 2:51am UTC](https://community.auth0.com/t/onboarding-flow-in-a-nextjs-app/124017/1 "2024-01-03T02:51:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [January 30, 2024, 9:06pm UTC](https://community.auth0.com/t/onboarding-flow-in-a-nextjs-app/124017/3 "2024-01-30T21:06:45Z")

</div>

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](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/event-object#:~:text=event.stats,has%20logged%20in).

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](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow#redirect-the-user-to-an-external-site)

I hope it will help you  
Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 13, 2024, 9:07pm UTC](https://community.auth0.com/t/onboarding-flow-in-a-nextjs-app/124017/4 "2024-02-13T21:07:24Z")

</div>

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