skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

auth0-spa-js

Add authentication to Vanilla JS, Svelte, or framework-agnostic SPAs.

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/auth0/agent-skills --skill auth0-spa-js

Overview

What This Skill Does

Add authentication to any browser-based single-page application using `@auth0/auth0-spa-js` — the low-level Auth0 SDK for Vanilla JS, Svelte, SolidJS, and any SPA not using React, Angular, or Vue. > **Agent instruction:** Before providing SDK setup instructions, fetch the latest release version by running: > ``` > gh api repos/auth0/auth0-spa-js/releases/latest --jq '.tag_name' > ``` > Use the returned version in all dependency lines instead of any hardcoded version below. If the command fails, fall back to checking https://github.com/auth0/auth0-spa-js/releases. #

Application

When to use this Skill

Documentation

Show Skills.md file

Auth0 SPA JS Integration

Add authentication to any browser-based single-page application using @auth0/auth0-spa-js — the low-level Auth0 SDK for Vanilla JS, Svelte, SolidJS, and any SPA not using React, Angular, or Vue.

Agent instruction: Before providing SDK setup instructions, fetch the latest release version by running:

gh api repos/auth0/auth0-spa-js/releases/latest --jq '.tag_name'

Use the returned version in all dependency lines instead of any hardcoded version below. If the command fails, fall back to checking https://github.com/auth0/auth0-spa-js/releases.

Prerequisites

  • Modern browser with ES2017+ support
  • npm or yarn (or use CDN for no-bundler apps)
  • Auth0 account with a Single Page Application configured
  • If you don't have Auth0 set up, see auth0-quickstart

When NOT to Use

Lines 1 - 25 of 197

Recommendations

Explore other random skills

All skillsMy patterns