Access token from Robot.js

In the sample provided for UIPath Robot.js, access token is displayed and synced for the first time when then the application that has embeded robot.js starts

I want to understand how the token is generated and which UIPAth component is generating this token?