Hi,
I want to approach a problem when the user signs up using auth0 with a particular domain and during registration, I need to connect the user domain from email with the particular organization which already was defined in the auth0 dashboard.
Is it possible somehow?
I would create auht0’s pre-registration hook to call Rails API and check which organization this domain belongs to. For example, I detected that organization no. 1 has domain: example.com
, so I should assign that user to organization no. 1.
But how should I modify the whole response to assign the user to the organization in auth0 while registering?
Please, help if you spot any hints here.
Thanks a lot,
Lukasz