refreshToken

Refreshes the token.

Return

a new registration token

Parameters

token

a current valid token

Throws

if token is blank

if device alias does not exist

if token is not valid

if the node does not exist

on server error