refactor login to use bitpay api token pairing code