-
Is it possible to login as multiple auth-enabled collections simultaneously? Let's say I have Right now, both Auth collections overwrite each other's |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @sixers! Unfortunately there are many complexities below the surface of doing something like this. For example, if you were logged in as 2 different users, how would Payload know which user you were intending to be using for any given request? Payload Making auth cookie names dynamic would certainly be one piece of the puzzle, but there are many more complex issues and use cases that would need to be thought through fully here. We can keep it on the radar for sure though. What do you think? |
Beta Was this translation helpful? Give feedback.
Hey @sixers!
Unfortunately there are many complexities below the surface of doing something like this.
For example, if you were logged in as 2 different users, how would Payload know which user you were intending to be using for any given request? Payload
operation
s access the currently authenticated user fromreq.user
- and while it would be easy enough to change this pattern to usereq.users
or similar instead, we would still need to know which user to rely on.Making auth cookie names dynamic would certainly be one piece of the puzzle, but there are many more complex issues and use cases that would need to be thought through fully here.
We can keep it on the radar for sure though. What…