Skip to content

SudoSOS Back-end API / helpers / userTokenInOrgan

Function: userTokenInOrgan() ​

ts
function userTokenInOrgan(req, organId): boolean;

Checks if the given ID is part of the Token Organ List.

Parameters ​

ParameterTypeDescription
reqRequestWithTokenThe request with token to validate against.
organIdnumberThe id of the organ to check.

Returns ​

boolean