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 ​
| Parameter | Type | Description |
|---|---|---|
req | RequestWithToken | The request with token to validate against. |
organId | number | The id of the organ to check. |
Returns ​
boolean