Back

Need help with user login system

  • 0
  • Web
Pradip Chaudhary
20 Apr, 2023, 04:47

I have two versions for my app One is nextjs website and other is electron app I want only few users from my appwrite to be able to login to next js and few to electron app Basically I want to separate the users of both but still in the same app because the users of electron app are kind of employess of the users registered on next js website. & also I want to be able to create new user (employee) from next js which should not log out the current user of next js and should create new user (employee).

TL;DR
I need assistance with setting up a user login system for my app. I have two versions of the app – a Next.js website and an Electron app. I want to have separate users for each version, but still have them connected within the same app. The users of the Electron app are employees of the users registered on the Next.js website. Additionally, I want to be able to create new employees from the Next.js website without logging out the current user. Any solutions or suggestions would be greatly appreciated.
darShan
20 Apr, 2023, 05:13

You can use user preferences to check if a user is a user or an employee.

joeyouss
20 Apr, 2023, 09:26
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