useVerifyPopup
A custom React hook to launch a verification popup for address-based verifications.
Usage
import { useVerifyPopup } from "authento-react";
export const MyComponent = () => {
const { verifyBasic, status } = useVerifyPopup({
domainName: "YOUR_DOMAIN_NAME",
messageText:
"Sign this message to prove your ownership of this address and " +
"proceed with the identity verification process."
});
return (
<div>
<button onClick={verifyBasic}>Verify</button>
{status === "pending" && <p>Pending user signature</p>}
{status === "success" && <p>Signature generated successfully</p>}
{status === "error" && <p>Failed to generate signature</p>}
</div>
);
};Configuration
Return Value
Last updated