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

Personal api token doesn't work #385

Closed
marekkondracki opened this issue Oct 30, 2023 · 1 comment
Closed

Personal api token doesn't work #385

marekkondracki opened this issue Oct 30, 2023 · 1 comment

Comments

@marekkondracki
Copy link

I have multiple projects and I want to use single token for all of them. But personal token doesn't work.

I have an error: "Error: Can’t fetch the project"

If I use Api Client per project, everything works. I have own instance of accent.

@simonprev
Copy link
Member

If you use a personal access token in the CLI, you must also add a project key in your config as the ID of your project (you can see it in the URL, its a UUID). Since the token is not linked to a projet, we need a way to tell which project is the target.

{
  "apiUrl": "https://accent.instance",
  "apiKey": "a-personal-access-token",
  "project": "94dbef49-33f5-47ba-b71d-93fca0719ca3",
  "files": ....
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants