SudoSOS Back-end API / internal/helpers / setRequestActor
Function: setRequestActor() ​
ts
function setRequestActor(actorId): void;Record which user the current request is authenticated as. Does nothing when called outside of a request.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
actorId | number | the id of the authenticated user. |
Returns ​
void