Gloabal values Webix jet

Hi, How can i set global values or global variables in the webix jet app, now i have set a value for example the role of the user like this:
this.use(plugins.User, user { value }).

The problem is that when the app reloads, that property or value go away so i get an error

Hello @Dalaz ,

Could you please provide more details on your implementation?

The global values can be preserved between sessions only if you store them in the cache. However, if you hardcode the default credentials, the plugin will consider it as a valid status (code reference) of a signed-in user.

But apart from the default credentials, the User plugin should be configured with a Session Model that will return the proper response with user status. It can either communicate with the backend (assumed as a default use-case), or access local storage/Service Worker, or return the needed response with any custom logic.

Please check the example of a similar model and full related demo on our Github (“node-express” branch, the user credentials are hardcoded in the backend script).