Glab auth status replies "Invalid token provided", cannot authenticate
Checklist
$ glab --version glab version 1.22.0 (2022-01-10)
Summary
Authenticating with a token leads to an invalid token message.
Steps to reproduce
$ glab auth login -h gitlab.com --token glpat-XXXXXXXXXXX
$ glab auth status
gitlab.com
✓ Logged in to gitlab.com as mquinzin (/home/adminqa/.config/glab-cli/config.yml)
✓ Git operations for gitlab.com configured to use ssh protocol.
✓ API calls for gitlab.com are made over https protocol
✓ REST API Endpoint: https://gitlab.com/api/v4/
✓ GraphQL Endpoint: https://gitlab.com/api/graphql/
✓ Token: ********************
! Invalid token provided
What is the current bug behavior?
The authentication fails.
What is the expected correct behavior?
Token should be recognized as correct, authentication should work
Relevant logs and/or screenshots
Token has following permissions api, write_repository
Edited by Maxime Quinzin