# How do I test the securityContext with Cube core in Embeddable when using driverFactory?

**URL:** <https://community.embeddable.com/t/how-do-i-test-the-securitycontext-with-cube-core-in-embeddable-when-using-driverfactory/125>\
**Category:** FAQs\
**Created:** [June 9, 2025, 10:15am UTC](https://community.embeddable.com/t/how-do-i-test-the-securitycontext-with-cube-core-in-embeddable-when-using-driverfactory/125 "2025-06-09T10:15:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ella-embeddable](https://dub1.discourse-cdn.com/flex013/user_avatar/community.embeddable.com/ella-embeddable/32/15_2.png) [@ella-embeddable](https://community.embeddable.com/u/ella-embeddable)\
**Post date:** [June 9, 2025, 10:15am UTC](https://community.embeddable.com/t/how-do-i-test-the-securitycontext-with-cube-core-in-embeddable-when-using-driverfactory/125/1 "2025-06-09T10:15:42Z")

</div>

The `securityContext` argument below is exactly the content of the `securityContext` as passed to [Tokens API](https://docs.embeddable.com/deployment/tokens-api#example-fetch-a-token). For testing in the Embeddable dashboard builder, you can follow the instructions [here](https://docs.embeddable.com/data-modeling/row-level-security#testing-security-contexts-in-embeddable).

module.exports = { driverFactory: ({ securityContext, dataSource }) =\> { … } };
