So, I rn I just testing the auth flow and as I don't have SMS services for now, so It would be nice if I can call createPhoneSession which I hope create a new-user but as my phone SMS service is not avl will it fail?
or is there work around for ? can I create session via console and then fetch the active session token by providing userid?
You would need to set some sms provider values. It will create a new user if there's no user with the phone number, but, no sms would be sent because the keys are wrong
oh got it, thank :)... What about session creations? As I saw that calling createPhoneSession return Token object that contain sessionID so, will sessionID still be returned in response?
Sure, but the actual session is in a cookie rather than response body
oh got, it this means I can technical consider user login right? (as rn I am testing phase) so, this means I would be able create, update, edit documents.. as I have set permission...
No, the session isn't saved and used. If you want to test stuff as an end user, you could try this:
when I test I mean, I want to postpone the integration of SMS ( as I am not able to find any SMS provider in India as seek alot of company Documents)
so, I was thinking to integrate that last phase
for now just wanted to create a session via console. I wonder if that is possible?
No it's not
oh, π I guess then I think I will mark aloow everyone to edit the document for now during dev mode
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