We want to implement the Auth system using node appwrite SDK. For that, we used the bcrypt method to create a user using an email password. And it worked perfectly. Now, we want to create a session for this user, but we couldn't find a way to do that through docs. We're also unsure about how to do JWT login using node appwrite SDK. So any guidance on how we can create a session using node appwrite SDK would be helpful.
Thank you!
#How to login user using node-appwrite.
2 messages · Page 1 of 1 (latest)
That bcrypt method is used to import users when you have a bcrypt hashed password. People typically use the create method. https://appwrite.io/docs/references/cloud/server-nodejs/users#create
Appwrite 1.5 added support for creating sessions server side but Appwrite cloud is on 1.4 (hopefully upgraded very soon). If you still want to create sessions server-side, you'll need to make the API call (https://appwrite.io/docs/references/cloud/client-rest/account#createEmailSession) and manage the session (https://appwrite.io/docs/apis/rest#client-integration) manually