Back

[SOLVED] create user using node-appwrite and auto login

  • 0
  • Self Hosted
  • Users
gaurav_ch
17 Oct, 2023, 02:34

I am trying to create a user using node-appwrite as I am not able to use msg91 for phone auth as the flow id is no more in use for OTP sms.

I am creating a user and want to programmatically create a session. Is creating a user automatically creates a session?

TL;DR
The user was having trouble creating a user and automatically logging in using node-appwrite. They learned that registering a new user doesn't create a session automatically, so they need to manually do it. They needed to create a session programmatically. The user was informed that node-appwrite doesn't have a create session function because it's a server SDK. The issue was solved by manually creating a session after registering a new user.
Guille
17 Oct, 2023, 12:06

registering a new user won't create a new session, you have to manually do it.

node-appwrite doesn't have a create session because it's a server SDK

gaurav_ch
18 Oct, 2023, 05:17

thanks

gaurav_ch
18 Oct, 2023, 05:17

[SOLVED] create user using node-appwrite and auto login

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more