@rent-the-runway/rtr-react-okta-auth
Version:
React hooks library for interacting with Okta. Lock out UI and Routes based on user authentication and the okta-user-groups the user belongs to. Can also lock out UI or Routes based on Claims.
78 lines (77 loc) • 1.97 kB
JSON
{
"name": "@rent-the-runway/rtr-react-okta-auth",
"version": "3.0.1",
"private": false,
"description": "React hooks library for interacting with Okta. Lock out UI and Routes based on user authentication and the okta-user-groups the user belongs to. Can also lock out UI or Routes based on Claims.",
"homepage": "https://github.com/RentTheRunway/rtr-react-okta-auth",
"author": "John Ralston",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist",
"src"
],
"engines": {
"node": ">=10"
},
"eslintConfig": {
"extends": "react-app"
},
"scripts": {
"start": "tsdx watch",
"build": "tsdx build",
"test": "tsdx test --passWithNoTests",
"test:watch": "tsdx test --watch",
"test:coverage": "tsdx test --coverage",
"test:badges": "jest-coverage-badges output ./readme-img",
"lint": "tsdx lint",
"prepare": "tsdx build"
},
"peerDependencies": {
"@okta/okta-react": "^5.1.2",
"react": ">=16.11.0",
"react-dom": "^16.11.0",
"react-router-dom": "^5.1.2"
},
"husky": {
"hooks": {
"pre-commit": "tsdx lint"
}
},
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
},
"module": "dist/rtr-react-okta-auth.esm.js",
"devDependencies": {
"@okta/okta-react": "^5.1.2",
"@testing-library/jest-dom": "^5.12.0",
"@testing-library/react": "^11.2.7",
"@types/jest": "^26.0.23",
"@types/react": "^17.0.8",
"@types/react-dom": "^17.0.5",
"@types/react-router-dom": "^5.1.7",
"husky": "^6.0.0",
"jest": "^27.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0",
"tsdx": "^0.14.1",
"tslib": "^2.2.0",
"typescript": "^4.3.2",
"jest-coverage-badges": "^1.1.2"
},
"keywords": [
"React",
"Okta"
],
"jest": {
"coverageReporters": [
"json-summary",
"text"
]
}
}