
Hi, How to manually send Login OTP using functions

if you're asking about how to send the token for Appwrite's phone auth, then you can just call the create phone session api.
if you're asking about not doing that, you would implement all that yourself...however the big challenge you'll have is how to create the session and provide that to the user... 🧐

i want to send otp via whatsapp using my custom end points

but i see there is no option other than the providers given by appwrite

if you want users to be able to create a phone session using whats app, the best thing to do is to add a whatsapp provider...there's actually an old PR for adding this...

@Steven is there any way to fetch the otp from a fuction? like a database call or any as such?

you could try to have a function that triggers on the api call

but can it trigger a function on phone auth? and will it send the required data?

try it. if the function isn't triggering, create a github issue

@Steven also im using msg91 .. but i want to send customised content otp per project... that is different template id per project
Recommended threads
- 1.7.0 Self Hosted Upgrade
Hi, I've tried a fresh install on 1.7.0 and I've also done a fresh install on 1.6.2. 1.6.2 is working fine fresh, update to 1.7.0 and migrate fails Fresh inst...
- deno 2 Cloud random errors
we have big problems with the functions. although we do not change anything in the function, we have the following random behaviour: - no scope permissions erro...
- Functions not work on Server only Localh...
Hi, I successfully upgraded from 1.4 to 1.7, but I'm having a problem. The functions no longer work with the settings I had. I assume some changes were made. It...
