You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
When I use signInWithOtp, using an actual OTP and not the magic link, the first code is almost always expired when I use it in verifyOtp. Only when I request a new code (using signInWithOtp again), do I get a working one. It happens in development and production.
To Reproduce
Sign in with OTP (this happens inside a modal dialog):
Bug report
Describe the bug
When I use
signInWithOtp, using an actual OTP and not the magic link, the first code is almost always expired when I use it inverifyOtp. Only when I request a new code (usingsignInWithOtpagain), do I get a working one. It happens in development and production.To Reproduce
Expected behavior
The first OTP should work.
System information
Additional context
I'm using React + NextJS together with Supabase's helper packages.