## TL;DR

Create the user through supabase.auth.signInWithOtp instead and the verify step works. If OTP verify fails on local Supabase, check how you created the test user.

## Steps

1. If OTP verify fails on local Supabase, check how you created the test user. Creating it with auth.admin.createUser never sends an OTP, so there is nothing to verify. Create the user through supabase.auth.signInWithOtp instead and the verify step works.

## When to use

You are seeing this: Issue supabase/auth#1293 (closed, 16 comments): Test OTP verify not working on supabase local. Use this skill when you run into "OTP verify failing locally: use signInWithOtp, not admin.createUser".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://github.com/supabase/auth/issues/1293
