Get your first review and appear on Google
When your user logs in, tell ProofConvert who they are using the useProofConvert hook:
1const { login } = useProofConvert();
2
3const handleLogin = async (email, password) => {
4 const user = await yourAuth.login(email, password);
5
6 login(user.id, {
7 name: user.name, // Optional
8 email: user.email, // Optional
9 photoUrl: user.photoUrl // Optional
10 });
11};name, the user will appear as "Anonymous" in public reviews.Example: Ask for a review after exporting a PDF
1const { review } = useProofConvert();
2
3const handleExport = async () => {
4 await exportToPDF(); // Your export logic
5
6 // ✨ Beautiful widget appears
7 await review('export-pdf');
8};