-
Notifications
You must be signed in to change notification settings - Fork 0
feat: login workaround #145
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
Conversation
Creates work around commands to generate an .rtm.json configuration file For new users without a `.rtm.json` file, there is an issue preventing the CLI to wait for you to authenticate to RTM in your browser before attempting to login with your token. As a work around, you can run the following command from the projects root, once you clone this repo. It is a two step process, to get a `frob` and authenticate with RTM and then the second step uses the `frob` to request a token that gets saved to your `.rtm.json` file. First, run `node src/utils/login-workaround-step1.js` You will get an RTM login link and a frob to use in the next command ```shell Authenticate with RTM by opening the link in your web browser https://www.rememberthemilk.com/services/auth/?api_key=cbc762cxxxxxccc4ee1f&perms=delete&frob=8fccccccccc3fbc1df9d5&api_sig=3becccccccccccc305db82b2a Once you've authenticated, run the following command node src/utils/login-workaround-step2.js 8f49634xxxxxxxxxxxxxxxfd03fbc1df9d5 Warning! This wil overwrite an existing ~/.rtm.json if you have one. ``` Then run the command it gives you `node src/utils/login-workaround-step2.js <frob>` and it will get your auth token and save it to `~/.rtm.json`. Change the permissions on your `~/.rtm.json` to owner ownly `chmod 600` With an `~/.rtm.json` you should now be able to use RTM CLI.
Creates new instance of readline to wait for the user to authenticate. I guess the completions were getting in the way or something.
|
@Hostuu @dogmaticwonder @franciscof5 This is the PR to try with the if you're running it from the repo directly, you can run This should create a new (overwriting any existing If this works, I'll update the description and pull out the workaround. |
|
I don't know how to use the workaround. It's giving me 'MODULE_NOT_FOUND' on the first command. |
Nevermind, I just needed to download the raw files and put them in the appropriate locations |
|
You might have needed to run
Are you able to use rtm-cli? |
|
|
@Hostuu Thanks for testing it and the update. I'll back out the workaround command then, since the I probably won't be able to get to that until Saturday morning, but it's on my to-do list 🐄 |
The different approach in `login.js` removes the need for these files.
Resolves an issue where the login command would wait indefinitely or not at all for input while waiting for the user to authenticate with RTM before requesting the user token to save to the
~/.rtm.jsonfile.Resolves #68 #131
Many thanks to @Hostuu @dogmaticwonder @franciscof5 for letting me know this issue was affecting more than just Chromebook users and for patience while I resolve it!