跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Auth0 SPA JS Integration

技能 已验证 活跃
属于:Auth0

Use when adding authentication to Vanilla JS, Svelte, or any framework-agnostic single-page applications - integrates @auth0/auth0-spa-js SDK for SPAs without framework-specific wrappers

目的

To enable developers to easily add robust authentication to their Vanilla JS, Svelte, or any framework-agnostic single-page applications using the Auth0 SPA JS SDK.

功能

  • Integrates @auth0/auth0-spa-js SDK
  • Supports Vanilla JS, Svelte, and other SPAs
  • Provides automated setup scripts
  • Detailed integration patterns and API reference
  • Includes common error handling and security considerations

使用场景

  • Adding login/logout functionality to a new SPA
  • Securing API calls from an SPA
  • Configuring Auth0 for various SPA frameworks
  • Understanding Auth0 SPA JS SDK capabilities

非目标

  • Auth0 integration for React, Angular, Vue, Next.js, Nuxt, or server-side apps (separate skills exist)
  • Auth0 universal login page customization
  • Backend API authentication logic

工作流

  1. Install Auth0 CLI (if needed)
  2. Log in to Auth0 account
  3. Detect project type and default port
  4. Discover existing Auth0 applications and connections
  5. Create a new SPA client or identify an existing one
  6. Ensure a database connection is enabled for the SPA
  7. Write Auth0 domain and client ID to .env file
  8. Provide instructions for manual verification and further integration

先决条件

  • Modern browser with ES2017+ support
  • npm or yarn
  • Auth0 account with a Single Page Application configured

安装

/plugin install auth0@auth0-agent-skills

质量评分

已验证
100 /100
1 day ago 分析

信任信号

最近提交1 day ago
星标20
许可证Apache-2.0
状态
查看源代码

类似扩展

Auth0 Express OAuth2 JWT Bearer

100

Use when adding Auth0 token validation to Express or Node.js APIs - integrates express-oauth2-jwt-bearer SDK to protect Node.js API endpoints with JWT Bearer authentication, scope-based RBAC, claim validation, and optional DPoP support

技能
auth0

Auth0 Nuxt

100

Use when implementing Auth0 authentication in Nuxt 3/4 applications, configuring session management, protecting routes with middleware, or integrating API access tokens - provides setup patterns, composable usage, and security best practices for the @auth0/auth0-nuxt SDK

技能
auth0

Auth0 Next.js

100

Use when adding authentication to Next.js applications (login, logout, protected pages, middleware, server components) - supports App Router and Pages Router with @auth0/nextjs-auth0 SDK.

技能
auth0

Auth0 Java Mvc Common

100

Use when adding Auth0 login, logout, and callback handling to Java Servlet web applications - integrates com.auth0:mvc-auth-commons SDK for server-side Java apps using javax.servlet with session-based authentication. Triggers on AuthenticationController, AuthorizeUrl, Tokens, IdentityVerificationException, Java MVC auth.

技能
auth0

Auth0 Flask

100

Use when adding login, logout, and user profile to a Flask web application using session-based authentication - integrates auth0-server-python for server-rendered apps with login/callback/profile/logout flows.

技能
auth0

Auth0 Expo Integration

100

Use when adding authentication to Expo (React Native) mobile apps — login, logout, user sessions, protected routes, biometrics, or token management. Integrates react-native-auth0 SDK with Expo Config Plugin for native iOS/Android builds. Trigger for any Expo project needing Auth0, including app.json plugin config, custom scheme setup, or credential management. Do NOT use for bare React Native CLI projects (use auth0-react-native), React web apps (use auth0-react), Next.js (use auth0-nextjs), or backend APIs.

技能
auth0