Credentials
The platform holds four credentials to run your project: your sign-in, the repository access it requests, the store credentials you supply, and the access tokens you mint. Read this page before you connect a repository or type a store secret into project settings. It describes the credentials you configure, never the platform's own.
Quick start
curl -s https://www.extension.dev/api/auth/sessionSigned in, the session answer carries your profile and never your GitHub access token. The platform deletes the token from the response before answering, even though the token is what the session cookie carries.
How it works
Your sign-in
You sign in with GitHub. The platform keeps no session table. Your session is an encrypted token in one cookie, __Secure-authjs.session-token, set httpOnly, secure and sameSite=lax. Because the cookie is httpOnly, JavaScript on the page cannot read it.
Your GitHub access token travels inside that encrypted session token. The session endpoint at /api/auth/session deletes the access token from its response before answering, so the browser is never handed the credential. Signing out ends the session.
Repository access
The platform reads and writes your repository through a GitHub App, not through your personal token, and not through a key it stores per user.
Each operation asks GitHub for a fresh token scoped to one repository, with only the permissions that operation needs. A build read gets contents: read and metadata: read. A settings write that has to create an environment gets more. The permission sets are a fixed table in the source, so a caller cannot compose its own.
GitHub issues installation tokens with a one-hour lifetime and returns the expiry beside the token. The platform reads that expiry and never extends it. The expiry is attached to the client that carries the token as a non-writable property, so no later code can rewrite it.
Four answers from GitHub fail the request instead of proceeding: no expiry, an expiry the platform cannot parse, an expiry already in the past, or a lifetime longer than the documented hour. The platform refuses a credential whose lifetime it cannot state. The one-hour figure is the lifetime GitHub states in each response, not a number measured across traffic.
Inside a build, your job carries no stored credential for your source repository. It proves its identity to the platform with a GitHub OIDC token and exchanges that for a repository token good for one hour. That token is scoped to your source repository and carries contents: read, deployments: write and pull_requests: write.
Store credentials
Store credentials are the ones you supply: the Chrome, Edge, Firefox and Safari keys that let the platform submit on your behalf. Publishing lists them, store by store.
They are encrypted in the platform process, with a public key fetched from GitHub, before they leave it. What GitHub receives is already sealed. Reading them back is not possible: the API the platform uses to check your configuration returns secret names and their last-updated timestamps, never values. A store settings panel can tell you a secret is missing but can never show you the one that is there.
Replacing a value overwrites it. Deleting the secret removes it. Neither leaves a copy in a platform database.
When the console reports which store secrets you have set, it reports whether it could read that list. A listing it could not read comes back unverified rather than empty, so "no credentials configured" and "the list could not be read" are different answers.
What reaches a job that runs your code
The credentials that reach a job running your code are your own store credentials, held as repository secrets on your build repository. No platform credential resolves there. Your store credentials are long-lived and they sit on the repository that builds your code. What holds the claim up is whose credentials they are: yours, and only yours.
- Store credentials become environment variables in the store submission job. That job installs no dependencies from your project and runs no build. It downloads an artifact your build already produced, fetches a pinned submission tool, and talks to the store.
- The job that builds your extension is a different job, in a different workflow. It installs your dependencies and runs their install hooks. No store credential is bound to any step of it.
- The build job checks out with
persist-credentials: false, so git credentials are not written to disk beside the install hooks that run there.
Access tokens
An access token authenticates a machine against one project. See Access tokens for how to mint and use one.
The token is signed, not stored. It carries its own claims and a signature, and the platform verifies the signature rather than looking the value up. Nothing in the platform holds the token itself. What is recorded is a description of it: an id, your label, the lifetime you chose, who issued it, when, when it expires, and whether it was revoked.
A token lives for at least one day and at most seven days. There is no longer option.
This is the credential a pipeline uses to call the platform API, stored as a secret and rotated within that week. The OIDC exchange a build already runs mints a registry credential, which the platform API refuses at every door that reads the header. See CI and releases.
Revoking a token in project settings writes the revocation to its record, and the record is what the project API consults. On that path the check fails closed: a token whose record cannot be found is refused as well.
One path behaves differently. The artifact sharing path refuses a token only on an explicit revocation record. If the record cannot be read at that moment, the request proceeds on the strength of the signature, so that an outage in one store does not stop publishing everywhere.
That path also reads a cached copy of the record for up to five minutes, so a fresh revocation can take that long to reach it. If you need a token dead with certainty, revoke it, confirm the revocation is recorded, and allow that window to pass.
Reference
| Credential | Where it lives | Lifetime | You end it by |
|---|---|---|---|
| Your sign-in | An encrypted cookie in your browser | The browser session | Signing out |
| Repository access | Requested per operation, held in memory | One hour | Uninstalling the GitHub App |
| Store credentials | Encrypted secrets on your project's build repository | Until you replace or delete them | Deleting them in project settings |
| Access tokens | Nothing stores the token itself | Up to seven days | Revoking it in project settings |
When it fails
- A store panel says a secret is missing after you saved it. The panel reads secret names from GitHub, never values. If the listing could not be read, the panel says so rather than claiming the secret is absent. Save it again once the listing reads.
- A revoked token still publishes an artifact. The artifact sharing path reads a cached record for up to five minutes and proceeds on the signature when the record cannot be read. Confirm the revocation is recorded and wait out the window.
- A repository operation fails with a token lifetime error. GitHub returned a token whose expiry the platform could not state. The platform refuses it by design. Retry the operation.
- A pipeline fails with
401 REGISTRY_TOKEN. The job sent the OIDC exchange's registry credential to the platform API. Store a project token for that job instead.
Next
- Access tokens to mint one for CI or an agent
- Publishing for the store credential names and the health check that tells you which one is wrong
- HTTP API for the endpoints a stored project token reaches