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.
A build runs on the extension.dev build lane, not in your repository. The lane proves its own identity to the platform and asks for the tokens one job needs: a read token for your source (contents: read), a token that writes the deployment and the pull request comment (deployments: write, pull_requests: write), and a separate checks: write token when the App installation grants it. Each is good for one hour and stays in the lane's firewall. The box that runs your code never sees one.
Store credentials
Store credentials are the ones you supply: the Chrome, Edge, Firefox and App Store accounts that let the platform submit on your behalf. Publishing lists them, store by store.
You connect a store once, for the whole workspace under Store accounts or for one project under Project settings, Stores. Chrome is connected by signing in with Google; the platform keeps the refresh token Google hands back, paired with its own OAuth client. Edge, Firefox and the App Store take a key you paste on the connect page. The platform checks the key with the store before it saves anything, so nothing is stored until the store accepts it.
A saved key is sealed with AES-256-GCM under a platform key before it reaches storage, and the slot it was sealed for (the workspace or the project, and the store) is bound into the seal. A sealed value copied under another workspace, project or store opens as nothing. Nothing is written to GitHub. Reading a value back is not possible: the console reads names and connection state, never values. A store panel can tell you a store is not connected but can never show you the key that is there.
Reconnecting replaces the sealed value. Disconnecting removes it. A project's own key is sealed apart from the workspace account for the same store, so removing one never touches the other.
What reaches a job that runs your code
No credential of yours reaches the job that builds your code. The build runs on the extension.dev build lane with the source read token held in the lane's firewall, and no store credential is bound to any step of it.
- A store submission is a different job. The lane asks the platform for one store's credentials only for a submit job the platform dispatched, for a store named in that job, and the answer is never cached. The platform logs the names and the count it handed over, never the values.
- The submit job installs no dependencies from your project and runs no build. It takes an artifact your build already produced and talks to the store.
- Safari signing runs on its own lane with the signing material the platform holds for your workspace, under the same rule: handed per job, never stored on the job.
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 about 60 seconds, 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 | Sealed in the platform's own store, per workspace or per project | Until you reconnect or disconnect the store | Disconnecting the store under Project settings, Stores or Store accounts |
| Access tokens | Nothing stores the token itself | Up to seven days | Revoking it in project settings |
When it fails
- A store still reads as not connected after you pasted the key. Nothing is saved until the store accepts the key. Read the refusal on the connect page, fix the key, and connect again.
- A revoked token still publishes an artifact. The artifact sharing path reads a cached record for about 60 seconds 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