And he has super role to all actions.
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โ
Yes i mean appwrite console user๐ .
Still not clear on โon behalf of the adminโ?
I mean create a phone session with the appwrite console user, This way we get access to the secret.
Btw, @erikkamalov how much is the price offer of your SMS provider?
is that available also in worldwide? I am from Philippines, and I am looking for cheapest SMS provider
@Mosh Ontong 1 sms of my SMS provider 0.014$. Others have a minimum 0.04$.
The numbers may not seem like a big difference, but when there are a lot of users, the amount will be large.
what is the name of your provider?
Sorry, still not getting it! Unless you mean youโre doing it with a Server SDK?
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
You can use rest API for calling sessions/phone
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.
@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.
@wonderfulcheese Pls how request header
These are the headers @erikkamalov
@wonderfulcheese pls add
'x-appwrite-mode': 'admin',
This parameter
Worked! Thanks a lot @erikkamalov
Recommended threads
- Upgrade Issue
Am having issue upgrading my appwrite account to pro as my card number is 19 and the required input is 16 digit
- createEmailPasswordSession Error using S...
Did someone succeed using SSR approach for login?
- [Solved] how to get user prefs from serv...
i want to get a specific users preferences from serverside maybe i missunderstood something