Tests: createAuthProvider factory, AuthProvider rendering, login/logout flows, localStorage persistence, onLoginFallback, useAuth outside provider, custom storage prefix.
36 lines
715 B
JSON
36 lines
715 B
JSON
{
|
|
"name": "@bytelyst/react-auth",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest run"
|
|
},
|
|
"peerDependencies": {
|
|
"react": ">=18.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@bytelyst/api-client": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"jsdom": "^28.0.0",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4"
|
|
}
|
|
}
|