Skip to content

💫 Refactor configure / login to graph API #24

@leny

Description

@leny

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions