Skip to main content

App Setup

Before writing any SDK code, you need two things: an App ID and an authentication method. These are configured once when you register your app with Privacy Boost.

Getting an App ID

The App ID is a unique identifier for your application (e.g., app_abc123xyz). You pass it to the SDK at initialization, and the backend uses it to identify your app, apply rate limits, and enforce access controls. To get one, contact the Privacy Boost team with your application name and use case.

Choosing an Authentication Method

When your app is created, you choose how users authenticate. This controls what credentials are required when the SDK logs in a user.

Which method should I use?

App ID only auth does not verify who is calling your app. Use one of the other methods in production if you need to control access.
Privy, Dynamic, and Custom JWT don’t need a backend of your own. You configure the provider’s JWKS URL with Privacy Boost, and the SDK sends the user’s token with each sign-in: getExternalToken in TypeScript, or the externalToken argument on iOS, Android, and React Native. In a browser, getExternalToken needs the local key vault (keyVault: { mode: 'local' }), which gives up the default iframe vault’s isolation from your page. API Secret credentials are for your own servers: the Backend API and the CLI. Signing in browser or mobile users through a backend relay that adds client credentials isn’t supported yet.

How Authentication Works Under the Hood

Every sign-in goes through two steps:
  1. App verification — The backend checks your app’s credentials (App ID only, API secret, or JWT depending on your method). This confirms the request comes from a legitimate app.
  2. Key verification — The SDK proves the user owns their privacy keys by signing a cryptographic challenge. This happens automatically inside signIn().
The SDK runs both steps itself. With Privy, Dynamic, or a custom JWT it attaches the user’s token to step 1; with API Secret, the CLI attaches your client credentials.

Next Steps

Configuration

Initialize the SDK with your App ID and endpoints

Authentication

The signIn() flow, wallet popups, and session management