Skip to main content

Auth basics

When using the privy-node backend client, you authenticate via an API key and secret, which can be found in the admin console.

import {PrivyClient} from '@privy-io/privy-node';

const PRIVY_API_KEY = '<retrieved from the Privy console>';
const PRIVY_API_SECRET = '<retrieved from the Privy console>';

const client = new PrivyClient(PRIVY_API_KEY, PRIVY_API_SECRET);

When you use privy-node, you are automatically authenticated as an admin. This allows you to configure schemas and access admin-permissioned data.

When using the privy-browser client, your users interact directly with Privy. In order for Privy identify your users, either: