Skip to main content
Private channels allow you to restrict app updates to specific users. This is useful for beta testing, early access programs, or paid tiers.

Overview

When a user requests an update from a private channel, your backend must:
  1. Verify the user has access to the requested channel
  2. Request an access token from the Overlayed API
  3. Return the token to the client
The client then uses this token to authenticate with the update server.

Client Setup

Configure the access token fetcher in your Electron main process:
The SDK sends the token it holds for the channel and only calls the fetcher when the update server says the check needs one: it fell back to the default channel, was refused because the app doesn’t allow public releases, or found no release. A public channel with releases never calls it. Return null when the user has no access. When the user has no access to their private channel (the fetcher returns null or throws, or the update server rejects the token it returned), authTokenInvalid fires. The check falls back to the default channel’s release, or fails with an update error when the app doesn’t allow public releases. It fires once per channel until the user regains access, so it never repeats on later checks:

Server Implementation

Your server must call the Overlayed API to generate access tokens. The endpoint is:
Headers:
  • Authorization: Bearer {your_overlayed_api_key}
  • Content-Type: application/json
Body:
Response:

Giving Specific Users Access Without a Token Server

To put a known set of users on a private channel without running your own token server, create a force channel or pin update rule that targets their user ids. Matching the rule counts as access, so those users get the channel’s releases without an access token. Rules trust the user id the app sends, so they’re a convenience for testers and early access, not access control. When access must be enforced, issue tokens from your server as described above.

Security Considerations

  • Store your Overlayed API key securely. Never expose it to clients.
  • Validate user authentication before generating tokens.
  • Use short token expiration times (30-60 minutes recommended).
  • The audience field should be a unique identifier for the user. This is logged for analytics.