mirror of
https://github.com/bitbaum/accountkit.git
synced 2026-12-04 04:57:12 +01:00
Nine apps hand-rolled OrangeCat OIDC; this is the best of each: - provider for Auth.js v5 and next-auth v4: client_secret_post, pkce+state, identity scopes; profile() without email (contactEmail as data) - syncOcSession (heidi/solon refresh): invalid_grant ends the session, anything else retries in 60 s - authorizationParams / returnPath (solon) - placeholder email, withOrangecatIdentity adapter wrapper and resolveOrangecatUser (petvity, surf-your-life, datacat race), decideOrangecatSignIn + link token (evig), emailEarnsPromotion, mayReceivePasswordReset - SignInError: Try again restarts sign-in Contract tests mutated: basic auth, dropped pkce, email in profile, ignored invalid_grant, kept actorId, reused taken email, admin promotion, reset for OC-only — each turns the suite red. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
85 lines
2.3 KiB
JSON
85 lines
2.3 KiB
JSON
{
|
|
"name": "@bitbaum/accountkit",
|
|
"version": "0.2.0",
|
|
"description": "One account for every bitbaum product: the account menu, and Sign in with OrangeCat (provider, session refresh, identity rules, error screen). Styled from @bitbaum/design-tokens.",
|
|
"license": "MIT",
|
|
"author": "Cato",
|
|
"homepage": "https://github.com/bitbaum/accountkit#readme",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/bitbaum/accountkit.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/bitbaum/accountkit/issues"
|
|
},
|
|
"keywords": [
|
|
"account-menu",
|
|
"avatar",
|
|
"sign-out",
|
|
"react",
|
|
"headless-auth",
|
|
"orangecat",
|
|
"oidc",
|
|
"next-auth",
|
|
"auth.js"
|
|
],
|
|
"type": "module",
|
|
"sideEffects": [
|
|
"*.css"
|
|
],
|
|
"packageManager": "pnpm@11.25.0",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"provenance": true
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"styles.css"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./orangecat": {
|
|
"types": "./dist/orangecat.d.ts",
|
|
"default": "./dist/orangecat.js"
|
|
},
|
|
"./styles.css": "./styles.css"
|
|
},
|
|
"peerDependencies": {
|
|
"react": ">=18"
|
|
},
|
|
"scripts": {
|
|
"build": "rm -rf dist && tsc -p tsconfig.json",
|
|
"lint": "eslint .",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"test": "node --test test/*.test.js",
|
|
"check:dist": "git diff --exit-code --stat -- dist",
|
|
"verify": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run build && pnpm test && pnpm run test:browser",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"demo": "esbuild demo/demo.tsx --bundle --jsx=automatic --format=iife --define:process.env.NODE_ENV='\"production\"' --outfile=demo/dist/demo.js --log-level=warning",
|
|
"test:browser": "pnpm run demo && node test/browser.mjs"
|
|
},
|
|
"devDependencies": {
|
|
"@bitbaum/design-tokens": "^1.1.0",
|
|
"@eslint/js": "^10.0.1",
|
|
"@types/node": "^26.4.0",
|
|
"@types/react": "^19.2.18",
|
|
"@types/react-dom": "^19.2.3",
|
|
"esbuild": "^0.28.2",
|
|
"eslint": "^10.9.1",
|
|
"globals": "^17.11.0",
|
|
"playwright": "1.63.0",
|
|
"prettier": "^3.9.6",
|
|
"react": "^19.2.8",
|
|
"react-dom": "^19.2.8",
|
|
"typescript": "^6.0.3",
|
|
"typescript-eslint": "^8.68.0"
|
|
}
|
|
}
|