Skip to content
NewsTeam Documentation Request early access

Reader Identity

Reader identity in NewsTeam is designed to be an organization-level concern rather than something each site or product solves in isolation.

In V1, that reader layer connects to identity and billing integrations. Identity integrations authenticate readers and issue access tokens for public products. Billing integrations expose products, subscriptions, and entitlement keys that can be mapped to content policies.


The current reader flow is:

  • A public product signs in a reader through an identity integration.
  • NewsTeam issues an access token for authenticated V1 requests.
  • Billing integrations return the products a reader can buy and the subscriptions they already have.
  • Those subscriptions return entitlement keys.
  • Organization content policies map entitlement keys to article access.
  • Articles can carry a policy so the product and API layer can decide whether the full article should be available.

Reader identity and entitlements should line up across the whole organization:

  • Consistent access and entitlements across all sites and public products.
  • A cleaner way to run multiple products without every team inventing its own access logic.
  • A shared policy layer that lets commercial teams change products without rewriting article metadata.
  • A clean bridge between external identity, external billing, and NewsTeam’s structured content model.

This model is intended to work with the systems publishers already use. The current support package includes WorkOS for identity and Paystack or Polar for billing, and the same integration contracts can be implemented for other providers.

NewsTeam does not force you into a single reader or billing vendor. It gives those systems a structured place to connect to articles, sites, products, and policies.


Use the Site’s public app ID for product context and the configured identity provider for sign-in. Provider credentials stay on a trusted server; an app ID does not authenticate a reader.

  1. Complete the provider’s configured sign-in/callback flow, checking state and registered return destinations. The accepted provider token format depends on the selected identity integration; do not assume any provider JWT is accepted.
  2. Exchange that provider token with the public V1 operation auth.issue-access-token, or SDK api.auth.issueAccessToken({ providerToken, userAgent }).
  3. Use the returned NewsTeam token for protected calls. Raw HTTP sends Authorization: Bearer YOUR_READER_TOKEN alongside app-id; the SDK accepts accessToken in its options.
  4. Read auth.me() for authoritative reader/profile state. The public client also includes auth.updateProfile, auth.listDevices and auth.revokeAccessToken; use their exact request fields from the reference.
  5. Revoke the current device token on logout with auth.revokeAccessToken({}) and clear local session state. Handle expired or rejected tokens with a safe sign-in recovery path.

For websites, store the NewsTeam token in a secure, HTTP-only, SameSite cookie. expiresAt is an absolute Unix timestamp in milliseconds: use new Date(expiresAt), never multiply by 1,000. Native apps keep the issued token in platform secure storage. See API timestamp recipes and native setup.

Keep auth/profile/subscription operations and token-bearing responses private/no-store at every cache layer. Use a separate no-auth client for shared public reads. Validate same-origin return paths, clear temporary/failed auth state and show a usable retry or sign-in notice without exposing raw provider diagnostics or tokens.

Profiles, subscriptions and article access

Section titled “Profiles, subscriptions and article access”

A complete profile, an active subscription and permission to read a particular article are separate decisions. Refresh auth.me and subscription.list after sign-in, profile changes and checkout, then match the relevant entitlement keys to the article policy. Do not authorise purchases or protected content from a cached UI badge.

The checkout recipe maps all six subscription operations and distinguishes browser returns from provider notifications. The enforcement status and acceptance matrix describe what must be verified before a production paywall guarantee. A policy on an article alone does not prove that protected bytes are absent for a denied reader.