Skip to content
Versora

Manual

Network and updates

Server tokens

4 min read

On this page

A GitLab or GitHub personal access token has an expiration date. When it expires, everything that depends on it stops working at once: push and pull over HTTPS, merge requests, pipelines, notifications. Usually nobody remembers the date until the day it fails.

Versora checks the validity of the tokens registered in Git servers and warns you ahead of time. In the same query, it finds out each server's version and plan, which decide which features are available in the app.

This is the main page about token validity. How to register the server and which token to create is in Git servers.

See each server's version, plan and token

Where to find it

  • Tab bar: the key icon (tooltip: "Git servers (credentials)")
  • Palette (Ctrl+P): "Git servers (credentials)"
  • Home: Servers

Each GitLab or GitHub server with a token gets two more lines in the list.

What appears

The first line is the product and the version:

ExampleWhen
GitLab 17.8 · Enterprise · Premium or higherGitLab installed at the company, Enterprise edition.
GitLab 16.11 · Community EditionGitLab Community Edition: free features only.
GitLab.comGitLab in the cloud.
GitHub.comGitHub in the cloud.
GitHub Enterprise Server 3.14GitHub installed at the company.

The GitLab plan can be Free, Premium, Ultimate or "Premium or higher". When you hover over it, the tooltip says where it came from:

  • "Plan reported by the server's license";
  • "Plan inferred from a paid feature (epics): can't tell Premium from Ultimate";
  • "Community Edition: free features only";
  • "Couldn't determine this server's plan".

Versora uses the version and the plan to disable, with the reason, the features the server doesn't have (for example, the merge train on a GitLab Free).

The second line is the token, for example "Token: expires in 40 days (01/05/2027) · scopes: api, read_user". The possible states:

TextMeaning
"expires today (…)", "expires tomorrow (…)", "expires in N days (…)"Known expiration date.
"expired on …" or "expired"The token is no longer valid.
"rejected by the server (revoked or incorrect)"The server doesn't accept the token.
"no expiration date"The token doesn't expire.
"expiration unknown"The server doesn't report it.
"couldn't check"The query failed.
"not registered"There's no token for this server.
"OAuth sign-in, renewed automatically"The account signed in through OAuth; there's no date to keep track of.

When the token expires within 14 days, has already expired or was rejected, the line gets "— click to update". Clicking the line opens the server's edit form, where you paste the new token.

Caveats and messages

  • "This GitLab version doesn't report token expiration (available from 15.5 on).": on older GitLab, the date doesn't appear.
  • "The server doesn't report the expiration of this kind of token.": happens with tokens that aren't personal.
  • "Couldn't reach the server: …": the server didn't respond. Check the network in Proxy.

Warning before a token expires

With the warning on, Versora checks the tokens on its own and shows a notice when one is about to expire.

Where to find it

  • Menu: Preferences › Network › Server tokens
  • Palette (Ctrl+P): "Check server token expiration"

Step by step

  1. Open Preferences › Network and scroll down to Server tokens.
  2. Leave the Warn when a Git servers token is about to expire (14 days) or has expired box checked.
  3. To check now, click Check now (or use the palette command).
  4. When a token needs attention, a notice appears with the Update token button, which opens the server in Git servers.
OptionWhat it doesDefault
Warn when a Git servers token is about to expire (14 days) or has expiredTurns on the automatic check. "Checked when the app opens and every 6 hours; at most one warning per server per day."On
Check nowChecks right away and warns again, even if the warning already appeared today.—

The check covers the servers of type GitLab or GitHub (or with the gitlab.com/github.com address) that have a registered token.

Caveats and messages

  • "The token for gitlab.empresa.com.br expires in 9 days (12/05/2026). Create a new one on the server and update it in Git servers.": create the new token on GitLab before the date and replace it in Git servers.
  • "The token for … has expired: operations and the integration with this server will fail until it's updated in Git servers.": update it now.
  • "… rejected the registered token (revoked or incorrect). Update it in Git servers.": the token was revoked or typed wrong.
  • In the manual check, when everything is fine: "The registered server's token is up to date." or "The tokens of the N registered servers are up to date." With no server with a token: "No GitLab/GitHub server with a registered token."

Tip

On GitLab, the expiration date is just a day: the token stops working at midnight UTC on that day. In time zones behind UTC, such as those in the Americas, that moment is still the evening of the day before on the local clock. Versora shows GitLab's date, but already treats the token as expired from that moment on. Replace the token with time to spare.

  • OAuth sign-in (Preferences › Accounts) doesn't need a personal access token and renews itself. See Servers and accounts.
  • The company policy can limit the accepted servers (allowed_servers). See Policy keys.

See also