Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.01 KB

File metadata and controls

34 lines (21 loc) · 1.01 KB

This example demonstrates the usage of Fingerprint inside the Next.js pages directory (classic approach). For an example using the app directory, see ../next-appDir.

Setting up

Fingerprint Public API key

In order to try out this example:

  1. Create a .env (or .env.local) file in this directory.
  2. Set the NEXT_PUBLIC_FPJS_PUBLIC_API_KEY environment variable to the value of your Fingerprint Public API key.

To get the API key:

Installing dependencies

From the repository root, install dependencies and build the SDK:

pnpm install
pnpm build

After setting the API key, start the example:

pnpm --filter next-example dev

Runs the app in the development mode.
Open http://localhost:3002 to view it in the browser.