This guide covers how to use the Prelude JavaScript SDK to authenticate users from a web frontend.Documentation Index
Fetch the complete documentation index at: https://docs.prelude.so/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you start, make sure you have:- A Prelude account with access to the Session API — contact us to obtain access
- An Application ID (
appID) — see Applications - An authentication method configured — see Password Authentication
Install the SDK
Install the Prelude JavaScript SDK in your frontend project:Initialize the SDK
Create aPrldSessionClient instance with your custom domain:
Try it
Try it
Scaffold a React project you will use for all the steps below:Create a Replace Add
.env file at the root of the project with your Application ID:.env
src/App.jsx with:src/App.jsx
optimizeDeps on vite configuration:vite.config.js