Skip to content

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 ​

ParameterTypeDescription
actorIdnumberthe id of the authenticated user.

Returns ​

void