-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two party authentication #16
Comments
When you start the script, a new chrome instance/window should open where everything happens. |
It did and I saw it fill in user/password...then a 2nd page came up asking
for 6 digit code but I never had a chance to enter it before it's bouncing
back and forth between screens. I was unable to locate the path used to
start chrome(chromium?) so I could do it manually either.
…On Mon, Jan 28, 2019 at 8:31 PM Jared Chapiewsky ***@***.***> wrote:
When you start the script, a new chrome instance/window should open where
everything happens.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEWP8NhtncvzzuISJnsNIuvoE_MJ6Imtks5vH6SFgaJpZM4aT_zS>
.
|
Ah yeah, you'll have to tweak the code slightly to give you time to enter your code. In index.js, something like:
I haven't tried that, but I'm pretty sure that would do it. |
Tried the code...it sat on the giveaway page....terminal showed: famewolf@hp810-135qe ~/giveaway-grabber $ npm start
Page 1 Start: There were plenty there.
|
See comment: #15 (comment) |
It works however initially it crashed because I took to long to enter the code....the average user is going to need time to grab their phone..open the app..enter their pin and then enter the code so you may need to adjust the delay if you make this a feature. Really nice! You'd also want to check the "Don't ask for 30 days" checkbox on the 2 party screen. *original error before I tried 2nd time:
(node:9936) UnhandledPromiseRejectionWarning: TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded |
Thanks. I'll create a new ticket for adding this feature. I think you can increase the default timeout like:
|
Just published new release with optional support for two factor authentication (see readme). |
Working great "as we speak" although the "npm -- -2fa" is a little awkward. I'll stick it in an alias and be good to go. Thank you! |
Have you considered adding these as additional entries to .env vs command line parms? |
user and password are already in the .env file, see the .env.example. I guess I could add the 2FA one as well, I was just lazy. |
I need to enter the 6 digit code for two party authentication into chrome. Once it's in, it will be ok for 30 days....I just can't figure out where chrome is or how to get the script to pause so I can fill the page out.
Point me in the right direction?
The text was updated successfully, but these errors were encountered: