I found a solution to the problem and I hope you will be able to explain the reason behind this:
I made two local variables in backend function that received the passed values.
export function assignRole(roleId, memberId) {
let role=roleId
let member=memberId
return roles.assignRole(role, member, { suppressAuth: true })
.then( () => {
console.log( “Role assigned to member” );
})
. catch ((error) => {
console.log(error);
});
}
Thank you for your support Yisrael. This is a very useful feature and I am glad you guys released it.