The securityContext argument below is exactly the content of the securityContext as passed to Tokens API. For testing in the Embeddable dashboard builder, you can follow the instructions here.
module.exports = { driverFactory: ({ securityContext, dataSource }) => { … } };