
Hello
I've checked the node-appwrite package I got to know the user registration flow
There is no option for user login in node-appwrite
My question is can we use appwrite to replace the auth system of normal MERN Stack application?
Currently I'm doing login and signup functionality in express . When the user login creates the jwt token and passes to the frontend. Every time frontend makes a api call validating the jwt token passed in header
Can we replace the sign-up route with an appwrite ? Basically i did this But in the login route i get an email and password in my body. I need to call the login method of the appwrite and pass the jwt to the frontend when the login is a success Then each api call i need to verify the jwt.
Is that possible?

In Appwrite it mostly works the opposite, what means that all the login logic must take place in the frontend. So you can do so by either by implanting the needed logic to save the session id in the server side.
You can see some details here: https://discord.com/channels/564160730845151244/1092520228858105856/1092523507553935360
And you can check this thread: https://discord.com/channels/564160730845151244/1087482990680084680/1087482990680084680
And, Maybe upvoting this issue. https://github.com/appwrite/appwrite/issues/3891

Yes Got it There is no direct way as of now. I hope the appwrite will give a feature which supports the complete server side

Correct me if I'm wrong, but you want to perform User Signup and User Login in your express app right?
With Appwrite's server sdk, you can use the Users API
(https://appwrite.io/docs/server/users) for the signup. As @Binyamin mentioned, appwrite currently has no direct implementation of login with the server sdk.

@safwan you saying that i can install 2 sdk in express itself and handle both login and signup?

not necessarily

you're using node-appwrite
package right?

just initialize the users api as well
Recommended threads
- CSV Import not working
I am running 1.7.4, trying the sample book csv import. I get a pop up saying import started and then a quick follow up saying completed. Nothing ever appears ...
- ❗[Help] Function stuck in "waiting" stat...
Hi Appwrite team 👋 I'm trying to contribute to Appwrite and followed the official setup instructions from the CONTRIBUTING.md guide to run the platform locall...
- 1.7.0 Self Hosted Upgrade
Hi, I've tried a fresh install on 1.7.0 and I've also done a fresh install on 1.6.2. 1.6.2 is working fine fresh, update to 1.7.0 and migrate fails Fresh inst...
