Rank 2: Process
And he has super role to all actions.
Votes
1
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
And he has super role to all actions.
Rank 5: Hypervisor
Just checking - you mean Appwrite Console users, not Auth users, right? Yes, I know that. But still not clear on what you mean by “on behalf of the admin”
Rank 2: Process
Yes i mean appwrite console user😅.
Rank 5: Hypervisor
Still not clear on “on behalf of the admin”?
Rank 2: Process
I mean create a phone session with the appwrite console user, This way we get access to the secret.
Rank 5: Hypervisor
Btw, @erikkamalov how much is the price offer of your SMS provider?
Rank 5: Hypervisor
is that available also in worldwide? I am from Philippines, and I am looking for cheapest SMS provider
Rank 2: Process
@Mosh Ontong 1 sms of my SMS provider 0.014$.
Others have a minimum 0.04$.
Rank 2: Process
The numbers may not seem like a big difference, but when there are a lot of users, the amount will be large.
Rank 5: Hypervisor
what is the name of your provider?
Rank 5: Hypervisor
Sorry, still not getting it! Unless you mean you’re doing it with a Server SDK?
Rank 2: Process
Rank 2: Process
I don't do anything with the help of the server SDK. I use the fetch method in bun to make a post request to create a session. There is no method for creating a session on the server SDK. But you can use the client SDK or
Rank 2: Process
You can use rest API for calling sessions/phone
Rank 5: Hypervisor
Yeah, so in that case, I still don’t understand what you mean by “with the appwrite console user”
I invited a member for the organisation. Now I have logged in to Appwrite from the new account. In the function code you shared, you have added the Cookie: 'a_session_console_legacy=session of member;', cookie header. Can you please share how exactly are you getting the value session of member?
Nevermind found it
@erikkamalov I am making a request to https://add/v1/account/sessions/phone from Postman. I've set the a_session_console_legacy cookie and when I make a post request, the OTP is being sent but in the response still I'm getting the secret as empty string.
Rank 2: Process
@wonderfulcheese pls show me your code?
I have added the cookie in Postman for my appwrite instance's domain. As you can see in the image, the secret is an empty string.
Rank 2: Process
@wonderfulcheese Pls how request header
These are the headers @erikkamalov
Rank 2: Process
@wonderfulcheese pls add
Rank 2: Process
'x-appwrite-mode': 'admin',
Rank 2: Process
This parameter
Worked! Thanks a lot @erikkamalov