Session and Roles
Use these endpoints to inspect or switch the current viewer role.
/api/session/viewerReturns the current viewer object.
/api/session/viewerSwitches the current viewer role.
Body shape
{ "role": "buyer" | "seller" | "admin" | "owner" }