App Backend Setup

When using PowerSync, your app backend is responsible for the following:

  1. Authenticating users.

  2. Generating JWTs to authenticate users against the PowerSync service.

  3. Writing client-side changes to the backend SQL database.

Authenticating Users

Authenticating users is outside the scope of PowerSync. A service such as Auth0 may be used, or any other authentication system.

Once a user is authenticated against your app backend, your app backend needs to generate a JWT to authenticate the user against the PowerSync service.

See Authentication Setup for details.

Backend Implementation Examples

See our Example Projects page for examples of custom backend implementations (using e.g. Django and Node.js)

Using Supabase is an easy alternative to a custom backend. Several of our example apps demonstrate how to use Supabase as the backend.

Last updated