@auth0/auth0-react

v2.2.4
Auth0 SDK for React Single Page Applications (SPA)
auth0 login Authorization Code Grant Flow PKCE Single Page Application authentication SPA authentication react

docs

typedoc --options typedoc.js src

lint

eslint --ext=tsx ./src ./__tests__

test

jest --coverage

build

npm run lint && rollup -c --environment NODE_ENV:production

start

rollup -cw

prepack

npm run build

test:cra

start-server-and-test start:api 3001 start:cra http-get://127.0.0.1:3000 cypress:run

start:api

npm start --prefix=examples/users-api

start:cra

npm start --prefix=examples/cra-react-router

cypress:run

cypress run --spec 'cypress/e2e/smoke.cy.ts'

test:gatsby

start-server-and-test start:api 3001 start:gatsby http-get://localhost:3000 cypress:run

test:nextjs

start-server-and-test start:api 3001 start:nextjs 3000 cypress:run

cypress:open

cypress open

start:gatsby

npm start --prefix=examples/gatsby-app

start:nextjs

npm run dev --prefix=examples/nextjs-app

test:cra:watch

start-server-and-test start:api 3001 start:cra 3000 cypress:open

install:examples

npm i --prefix=examples/cra-react-router --no-package-lock --legacy-peer-deps && npm i --prefix=examples/gatsby-app --no-package-lock --legacy-peer-deps && npm i --prefix=examples/nextjs-app --no-package-lock --legacy-peer-deps && npm ci --prefix=examples/users-api

test:integration

npm run test:cra && npm run test:gatsby && npm run test:nextjs

test:gatsby:watch

start-server-and-test start:api 3001 start:gatsby 3000 cypress:open

test:nextjs:watch

start-server-and-test start:api 3001 start:nextjs 3000 cypress:open
npm i @auth0/auth0-react

Metadata

  • MIT
  • Whatever
  • Auth0
  • released 12/11/2023

Downloads