supabase / auth-js

An isomorphic Javascript library for Supabase Auth.
MIT License
321 stars 153 forks source link

sendOtp function in GoTrueAdmin.ts #766

Open jzambrano12 opened 10 months ago

jzambrano12 commented 10 months ago

Discussed in https://github.com/orgs/supabase/discussions/16724

Originally posted by **jzambrano12** August 22, 2023 I think it would be very useful to have a function called `sendOtp` to send an OTP code to an email or phone number that is not registered in the project. Particularly in my current development I need to be able to link an email or phone number to a user who has lost access to my platform. I cannot do this because the `resend` function only works if the email or phone number you are trying to send the code to is registered in the project. It would help a lot of people, I'm sure I'm not the only one that this happens to.
hf commented 6 months ago

So, you're looking for invite over SMS?