In a backend JS environment, you can use the @privy-io/server-auth library to authorize requests and manage your application from your server. This library includes helpful utilities around verifying access tokens issued by Privy and interacting with Privy’s API to query and import users, create wallets, manage invite lists, and more.

Install the Privy Server SDK using your package manager of choice:

npm install @privy-io/server-auth@latest

Was this page helpful?