Add authentication token with webix graphql

How can we pass authentication with webix graphql

webix.proxy(“GraphQL”, GetMenuGqlQuery)

Where to add authentication

Hello @chetu_webosphere,

How can we pass authentication with webix graphql

If you plan on transferring the authentication token through AJAX headers, you can do something like the following:

webix.attachEvent("onBeforeAjax", function(mode, url, data, request, headers) { headers["jwt-token"] = JWTToken; });

The above code will add the extra headers to all AJAX calls, including the GraphQL ones.