Hey all, could anyone point me to some documentation about loggin in with the python sdk?
I see documentation here about logging in with various other sdk's https://appwrite.io/docs/authentication#login
And when I go to the python sdk I don't seem to be able to find anything in the examples https://github.com/appwrite/sdk-for-python/tree/master/docs/examples
It seems that I'm looking for this createEmailSession function, but it doesn't seem to be in the account API for python
const promise = account.createEmailSession(
'team@appwrite.io',
'password'
);
The function you want to use createEmailSession is for client side request, they meant to be execute by the user,
The python SDK on the other hand meant to be used in a server side environment only.
If you would go the documentation about account https://appwrite.io/docs/client/account
You can see the supported libraries for the client side
On the server side you have more options but you won't be able to login as a user just like that
What you can do is to have a workaround with cookie jar and JWT This is a bit of complex topic but you can achieve it
More details here 👇 https://discord.com/channels/564160730845151244/1092520228858105856/1092523507553935360
Ok I see, I think i've misunderstood the architecture! The auth flow will be in a js function that is called when the user clicks submit on a form
I come from a django world so I'm used to doing most of this on the server side
Thank you for he quick responses!
It's makes sense Also in other apps like Laravel you would manage most of the auth system on the backend side.
Appwrite main goal is to replace all your regular logic on the backend
[SOLVED] Login with python sdk
Recommended threads
- Which flutter SDK version for Self Hoste...
Hi all, Is there a good way to figure out which version of flutter SDK and Dart SDK is current for latest available self-hosted 1.8.0 ? I know new features are...
- Bug Report: Crash when trying to createR...
https://github.com/appwrite/sdk-for-android/issues/96 I think the bug is related with this one https://discord.com/channels/564160730845151244/1443887021314539...
- Dokploy docker compose
Hey guys hope y'all doing well, I was wondering if anyone could share a working 1.8.0 docker-compose that works with Dokploy I tried making it but it just does...