VibeFix

Video

Email link is invalid or has expired (Supabase)

"Email link is invalid or has expired." Your customer clicks the link in a sign-up or reset email, and it fails.

Video transcript

"Email link is invalid or has expired." Your customer clicks the link in a sign-up or reset email, and it fails. It means the one-time token in the link was already used, or its time ran out. Email links expire after one hour by default. One possible cause: an email client or security tool opens the link to scan it before your customer does, so the token is already used. Fix 1. In the Confirm sign up email template, show a code instead of a link, and check it in your app with verifyOtp. Fix 2. Or send people to your own page first, with a button that opens the real link, so a scanner only opens that page. Fix 3. Check the Email OTP expiration setting, and tell users not to forward password reset emails. To check: sign up with an inbox that scans links, use the code or press the button, and look for no otp_expired error in your Auth logs. VibeFix (vibe-fixer.com): free check first.

Read the full guide: Email link is invalid or has expired: the fix

All videos