Channel Token Regeneration

Beebotte API gives to possibility to regenerate Channel Token programmatically. Channel Token authentication provides read and write access to only one channel: the one the token is associated with. If you think the token was compromised, you can simply regenerate a new token for the corresponding channel. This can be done as follows:

Channel Token Regeneration operation require authentication using the account API and Secret Keys.

Regenerating a new channel token will invalidate the old token. Any connection using that old token will be dropped. Don't forget to update your application or connected devices with the new token following the regeneration.

bclient.regenerateChannelToken('channel1', function(err, channel) {
    if(err) console.log(err);
    // On success channel.token is the new generated token
    console.log(channel.token);
});
channel = bclient.regenerateChannelToken('channel1')
## channel.token is the new generated token
print channel.token
// This operation is not available yet!
// This operation is not available yet!