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
- Having issues with login via CLI
``` ~/appwrite appwrite login --endpoint https://localhost/v1 --verbose ? Enter your email myvalidemai...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...