I’m entirely new to Auth0 so just starting to learn.
One of my primary use cases is to only allow users to sign up if they have a pre authorized code (like a coupon code).
We sell our services to company X for use as an HR benefit.
We provide company X with a code of some kind that their employees would use to sign up for our service.
An employee of company X decides to use our service, comes to sign up but must provide that code for signup to succeed.
I don’t want to have to integrate with company X and add all their users (so it seems like Invite Only is not a good fit).
-User could enter the code first into our service, we validate, then allow them to pass on to Auth0 to sign up (not sure how to protect sign up so only those who have validated their code could progress).
-Add a custom field to the sign up form for the code. We somehow validated that code via a callback to a service we provide to validate the code. If not valid, sign up fails.
What are my best options here?