Skip to content
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

💫 Refactor configure / login to graph API #24

Open
5 of 7 tasks
leny opened this issue Oct 20, 2019 · 0 comments
Open
5 of 7 tasks

💫 Refactor configure / login to graph API #24

leny opened this issue Oct 20, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@leny
Copy link
Contributor

leny commented Oct 20, 2019

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

  • Remove the configure command
  • Implement the following commands:
    • login (use the graph API loginWithGitHub mutation)
      • To implement OAuth2, use a local koa instance to handle the return URL
    • logout (use the graph API revoke mutation)
  • save the token in ~/.becode.cli.json file
  • refactor open command to use the graph API data
@leny leny self-assigned this Oct 20, 2019
@leny leny added the enhancement New feature or request label Oct 20, 2019
leny added a commit that referenced this issue Oct 27, 2019
leny added a commit that referenced this issue Oct 27, 2019
leny added a commit that referenced this issue Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant