Home > Software design >  Can authentication be done on more than one table(react/nodejs)
Can authentication be done on more than one table(react/nodejs)

Time:11-02

Iam going to do an online library management system

I have **3 roles **(stored in separate tables in the database) The user: they have an interface that displays all the books online so they can preview() the front of the books, search() the books and reserve() the books online

The librarian: they have a totally different interface that allows them to do the management (registering the users,adding/delete books/managing reservations..etc)

The admin : the one who have access to the whole database , and can manipulate it so for example if a librarian is fired he can omit them

My main question is about the authentication part I said before that i have 3 roles (different tables in the database) , each one of them has a different interface Is that type of authentication possible in the backend? And in which framework/lang i can use? I mean when the admin enters his email and pass , his own interface appears And when the user enters his email and pass , the interface of books,reserving appears And when the librarian open his email and pass , the management interface appears

Thanks in advance

  • Related