💫 Refactor configure / login to graph API
- Lingua principale
- JavaScript
- Stelle
- 6
- Fork
- 5
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.