modified code to reflect getLoginInfo(url) - returns accessTokens, refreshTokens, and redirectURK (former 2 are used in payload) renamed
getAccessToken(payload) to authenticate(payload)
var payload = {
    accessToken: "",
    refreshToken: ""
};