receiving username, password and provider in options to be able to refresh the token if expires
dist