Replace this template with your information
Describe your question in as much detail as possible:
- What are you seeing, and how does it differ from what you expect to see?
- Consider including screenshots, error messages, and/or other helpful visuals
- What version are you on (Hint:
/help
) ? and are you using self-managed or gitlab.com? - What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
Thanks for taking the time to be thorough in your request, it really helps!
I do authenticate with glab auth login
, by either using web or token. In both cases it fails with
error using api: GET https://gitlab.com/api/v4/user: 401 {error: invalid_token}, {error_description: Token was revoked. You have to re-authorize from the user.}
Here the details:
$glab auth login
? What GitLab instance do you want to log into? gitlab.com
- Logging into gitlab.com
!WARNING: you have GITLAB_TOKEN or OAUTH_TOKEN environment variable set. Unset if you don't want to use it for glab
? How would you like to login? Token
Tip: you can generate a Personal Access Token here https://gitlab.com/-/profile/personal_access_tokens
The minimum required scopes are 'api' and 'write_repository'.
? Paste your authentication token: **************************
? Choose default git protocol SSH
- glab config set -h gitlab.com git_protocol ssh
✓ Configured git protocol
- glab config set -h gitlab.com api_protocol https
✓ Configured API protocol
error using api: GET https://gitlab.com/api/v4/user: 401 {error: invalid_token}, {error_description: Token was revoked. You have to re-authorize from the user.}