When requiring authentication for API endpoints, I saw you could set up and select any table, however, you can only choose one option. I have both a User and a Employee table. Some of my endpoints will be used for both my user and enterprise websites, so I want a way to have multiple simultaneous authentication sources.
What is the best way to do this?
- Is there a way to do this with the standard setup?
- Does it make sense to make some type of bridge or shared table that could somehow be used to authenticate both types in the cases where it is necessary?
- Should I make duplicate endpoints for the employee enterprise website when needed?
- Is it better to pass the auth token as a parameter (not using the standard setting) and also pass in the user type as a param and then add functions to the stack handling either case?
What are your thoughts?