Update the token after successful connection.
Merge pull request #402 from stloyd/bugfix/update_token

Update the token after successful connection.