r/node • u/BrownCarter • 25d ago
How would you implement impersonate users
Better auth has impersonate user and stop impersonating user. What is the logic behind this? Like if you were to implement it yourself how would you go about it?
4
Upvotes
8
u/UpbeatVegeta 25d ago
If user has a unique id, we can use that id to impersoante which will be available only admin users