useVerifyPopup
A custom React hook to launch a verification popup for address-based verifications.
Using this hook will keep the Authento verification popup safe from being blocked by the built-in popup blockers of major browsers.
Usage
Configuration
The useVerifyPopup
hook accepts a configuration object with the following properties:
domainName
(required): Your domain name registered with Authento. Please contact us if you are unsure of its value.messageText
(required): The text of the verification message. Unless otherwise communicated, this should be set touserType
(optional): Preset user type (either "INDIVIDUAL" or "CORPORATE"). New users will be prompted to choose their own user type if this is unset.
Return Value
The useVerifyPopup
hook returns an object with the following properties:
verifyBasic
: A function that initiates the basic verification process. When this function is called, the hook will open a popup window for the user to complete the verification process.verifyPoa
: A function that initiates the proof of address verification process. When this function is called, the hook will open a popup window for the user to complete the verification process.status
: The current status of the signature generation process, which can be one of the following values: "unstarted", "pending", "success", or "error".
Last updated