💫 Refactor configure / login to graph API
- Dominant language
- JavaScript
- Stars
- 6
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
When the graphAPI coming to production, it will be better to hook the cli to the graph API.
The cli will become a _client_, and will not need to be a _second_ source of data.
The primary goal is to allow becode users to log into the API from the cli, then we will be able to replicate some _mybecode_ actions from the cli (we already have the needs for some coaches).
### TODO
- [x] Remove the `configure` command
- [x] Implement the following commands:
- [x] `login` (use the graph API `loginWithGitHub` mutation)
- [x] To implement OAuth2, use a local koa instance to handle the return URL
- [ ] `logout` (use the graph API `revoke` mutation)
- [x] save the token in `~/.becode.cli.json` file
- [ ] refactor `open` command to use the graph API data
Contributor guide
Assessment
This issue has not been assessed yet.