javascript sdk login with immediate redirect to authenticate app