Back

[CLOSED] Confuse about the docs on Account API in server side

  • 0
  • Self Hosted
  • Functions
Mosh Ontong
9 Nov, 2023, 14:15

For the Create Phone Verification method it said that.

Use this endpoint to send a verification SMS to the currently logged in user

Ref: https://appwrite.io/docs/references/cloud/server-nodejs/account#createPhoneVerification

But in server side, how to create session then? As if, there is a create session on server side. So i confuse that how to create phone verification in server side.

TL;DR
User is confused about the documentation for the Account API in server-side. They mention confusion regarding the usage of JWT session and creating phone verification on the server-side. They ask if they should open an issue in the website repo. Solution: No clear solution mentioned in the thread.
Kenny
9 Nov, 2023, 14:28

I wonder if that user information is being set from the accountUpdatePhone call, since it says the createPhoneVerification is for use after updating the users phone number.

Mosh Ontong
9 Nov, 2023, 14:38

That is why I got confused about this

Haimantika
9 Nov, 2023, 15:49

@Mosh Ontong do you want to open an issue in the website repo about it? Will then review it

Drake
10 Nov, 2023, 19:07

Typically, you would create a JWT session client side and pass that to the server. You can see the setJWT() call in example

Mosh Ontong
11 Nov, 2023, 00:57

ohhh I seee tnx steve

Haimantika
14 Nov, 2023, 12:16

[CLOSED] Confuse about the docs on Account API in server side

Haimantika
14 Nov, 2023, 12:16

Hoping it is solved for you now?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more