Use enhanced token to obtain refresh token

Fixes gh-133.