Fixing issues with refresh token

Shouldn't we throw an error from here?