Back

Role based authentication - How to implement?

  • 0
  • Auth
  • Web
ddet2022
13 Apr, 2024, 00:16

I am having three roles for my project, each role will needs to redirect to different page. whats the best way to implement.

should I use Account.Preferences? what is the recommended approach?

TL;DR
Developers asking how to implement role-based authentication for their project with three different roles. They want each role to redirect to a different page. They are wondering if they should use Account.Preferences. Recommended approach is to use an authentication middleware like JWT tokens and set up role-based authorization.
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