💫 Refactor configure / login to graph API
- Vorherrschende Sprache
- JavaScript
- Sterne
- 6
- Forks
- 5
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.