TC.userId
Returns the user ID as it appears in the MDRV command line. MDRV is the main process that runs all protocols.
TC.userId();
Arguments
None
Return value
A promise that is fulfilled with a number upon success. It returns a valid user ID only when running from Controller. Otherwise, it returns -1.
Example
(async ()=>{
let userId = await TC.userId();
})();