Okta Registration Inline Hook: Check for Duplicate User

Complete overview and step-by-step guide pending

A Node.js application written to receive Inline Hook Requests for self-service registration.
This hook will verify if an email or phone number has been previously registered for another user in Okta. If a match is found, an error is returned to the user and registration is blocked. If no match is found, registration is completed and the user is authenticated.

Registration Hook Endpoint: /verifyRegistration
Okta API Token is required and should be stored as okta_key in .env file