Skip to main content
This guide covers how to use the Prelude JavaScript SDK to authenticate users from a web frontend.

Prerequisites

Before you start, make sure you have:

Install the SDK

Install the Prelude JavaScript SDK in your frontend project:

Initialize the SDK

Create a PrldSessionClient instance with your custom domain:
Scaffold a React project you will use for all the steps below:
Create a .env file at the root of the project with your Application ID:
.env
Replace src/App.jsx with:
src/App.jsx
Add optimizeDeps on vite configuration:
vite.config.js