loading
Preparing LoginRadius developer resources
Mission: Help enterprises accelerate digital transformation with our fully-managed Customer IAM technology.
Skip to main content

SDK Demos

Reference applications that show how to integrate the LoginRadius v3 JavaScript SDKs into real-world frontends. Each demo is self-contained and installs the SDK directly from npm.

All demo source code is available in the loginradius-demos repository.

Available Demos

DemoDemo Reference DocumentGitHub Reference Link
JS SDK (npm)JS SDK (npm) Demos GuideSDK and GitHub reference
JS SDK (CDN)JS SDK (CDN) Demo GuideSDK and GitHub reference
React SDKReact SDK Demos GuideSDK and GitHub reference

Prerequisites

  • Node.js 20.19+ or 22.12+
  • pnpm 10+ (recommended), or use npm/yarn per individual demo
  • A LoginRadius tenant with your API Key from the Admin Console

Quick Start

git clone https://github.com/LoginRadius/loginradius-demos.git
cd loginradius-demos

pnpm install

pnpm --filter @loginradius/demo-react-playground dev

Or treat any demo as a standalone project:

cd loginradius-js/vue
npm install
npm run dev

Configuration

Every demo needs your LoginRadius API Key and SOTT. The variable name depends on the bundler:

FrameworkVariable prefixFile
ViteVITE_LOGINRADIUS_*.env.local
Next.jsNEXT_PUBLIC_LOGINRADIUS_*.env.local
NuxtNUXT_PUBLIC_LOGINRADIUS_*.env
Angularn/asrc/environments/environment.ts
Vanilla HTMLn/aEdit index.html inline
VITE_LOGINRADIUS_API_KEY=your-api-key
VITE_LOGINRADIUS_SOTT=your-sott
caution

Never commit credentials. .env* files are gitignored. Vanilla HTML and Angular demos ship with placeholder values that you must replace locally.

Looking for Legacy Demos?

V2 SDK demos live under the Legacy sub-section.

DemoDemo Reference DocumentGitHub Reference Link
HTML and JSHTML and JS Demo GuideSDK and GitHub reference
HTML ThemedHTML Themed Demo GuideSDK and GitHub reference
Iframe ImplementationIframe Implementation GuideSDK and GitHub reference
AMP ConfigurationAMP Configuration Guide
AngularJSAngularJS Demo GuideSDK and GitHub reference
Angular 6Angular 6 Demo GuideSDK and GitHub reference
EmberJSEmberJS Demo GuideSDK and GitHub reference
Google AssistantGoogle Assistant Demo Guide
PolymerPolymer Demo GuideSDK and GitHub reference
ReactReact Demo GuideSDK and GitHub reference
Vue.jsVue.js Demo GuideSDK and GitHub reference
PreactPreact Demo GuideSDK and GitHub reference
AureliaAurelia Demo GuideSDK and GitHub reference
MeteorMeteor Demo GuideSDK and GitHub reference
Backbone.JSBackbone.JS Demo GuideSDK and GitHub reference
CakePHPCakePHP Demo GuideSDK and GitHub reference
CodeIgniterCodeIgniter Demo GuideSDK and GitHub reference
LaravelLaravel Demo GuideSDK and GitHub reference
SymfonySymfony Demo GuideSDK and GitHub reference
YIIYII Demo GuideSDK and GitHub reference
AlexaAlexa Demo GuideSDK and GitHub reference