Sometimes another service needs to know who your user is: an analytics tool, a support widget, a separate API. You don’t want to give it your user’s Pawabase token, which can do too much. A token profile lets a signed-in user request a separate, short-lived token that carries only the facts that service needs, signed so the service can verify it.
Token profiles page

Users & auth → Token profiles: start from a setup.

Your users keep their existing Pawabase sign-in.

In Studio

Users & auth → Developers → Token profiles. Connect another service opens the editor. Choose the identity and access information your service receives. No token syntax required.

The profile

Claims

A claim is one fact in the token. For each, you set:

Preview

Before you save, use Find a test user and Preview as (with an Organization context) to see the Resolved payload: exactly the claims that person’s token would carry. Use it to prove a claim is right and that private data isn’t leaking.

Use in your app and verify in your service

The editor shows ready-made code for both halves. Verify in your service: tokens are signed with Ed25519 (EdDSA). The receiving service must check the signature, issuer, audience and expiry, using the public verification keys (JWKS) shown on the page.

In your app: request a token

Request a new token when the old one expires; don’t store them long-term. The user must be signed in, and the profile must be enabled.

In your service: verify

Fetch the public keys once (cache them) and verify each token:
The same keys are available from the client with pawabase.auth.jwks(). Always check the audience: it stops a token meant for one service being accepted by another.

Design guidance

  • One profile per consuming service, with the smallest set of claims.
  • Short lifetimes (minutes), and request on demand.
  • Put authorisation facts in Admin data fields, never in user-editable metadata.
  • Require an organization or two-step for profiles that expose sensitive data.

Sessions

The user’s own tokens.

Roles

Facts you can put in claims.