Hello! Auth0 newbie here. Basically what i’m triying to do is that when the FIRST and only the first member of an org logs in on my app it gets redirected to a page containing a sample consent form. Any idea on how i can approach this?
Hi @mateo.ostorero,
Welcome to the Auth0 Community!
I understand you are trying to redirect your user to a consent page as part of the authentication flow.
In this scenario, I recommend using an Auth0 Post-Login Action to redirect your users to your custom consent page, and then continue the authentication flow after they have provided consent.
The tricky part may be determining whether the user is the first member of the Organization. Let me suggest a solution that you may be able to work around this. I recommend setting a custom user_metadata for the first member. If that user satisfies this condition, redirect them to the consent page, and update the user_metadata so that it only prompts once.
I hope this helps!
Please let me know if you need any help with the implementation.
Thank you.