Hey everyone! I'm implementing phone number login with OTP using Supabase Auth in my Go backend.
Right now I’m doing the usual flow:
POST /auth/v1/otp with phone number to request the OTP
POST /auth/v1/verify with the token and phone number to log the user in
Everything works fine. But I want to attach additional metadata during the login or user creation process — like a display_name or referral_code.
My questions:
Is it possible to send metadata (like display_name) during the OTP flow?
If not, is the only option to wait until after the /verify call and then update the user with a separate API call?
How are you guys handling this flow when using phone number logins and want to set custom data for users?
I searched the docs and couldn’t find any mention of metadata support for phone OTP logins. Any help, best practices, or pointers would be nice,
Thank you in advance