diff --git a/deno.lock b/deno.lock index 16b3e9ad..6cdd5a2f 100644 --- a/deno.lock +++ b/deno.lock @@ -110,39 +110,6 @@ "@ark/util@0.56.0": { "integrity": "sha512-BghfRC8b9pNs3vBoDJhcta0/c1J1rsoS1+HgVUreMFPdhz/CRAKReAu57YEllNaSy98rWAdY1gE+gFup7OXpgA==" }, - "@aura-stack/auth@0.7.2_arktype@2.2.0_typebox@1.1.38_valibot@1.4.0_zod@4.3.5": { - "integrity": "sha512-fnlE+yIM90/ibGMSdIJRB20cJ1e7P8YYKY0ixCe0zrjYAdolVPUpDKiVEBnYzM9ICT2UNFSV4saGzhUtelIAAg==", - "dependencies": [ - "@aura-stack/jose", - "@aura-stack/router@0.7.2_arktype@2.2.0_typebox@1.1.38_valibot@1.4.0_zod@4.3.5", - "arktype", - "typebox", - "valibot", - "zod" - ] - }, - "@aura-stack/jose@0.6.0": { - "integrity": "sha512-wt1Jg6S42x1s9nqftvTBPXK/iYQX6Ihn01Oo5PO3i5ULW+QJNZFww6udicqzXKAFMu5rmez4e8L9qf/sx6uJaA==", - "dependencies": [ - "jose" - ] - }, - "@aura-stack/router@0.7.2_arktype@2.2.0_typebox@1.1.38_valibot@1.4.0_zod@4.3.5": { - "integrity": "sha512-Swxm9SDvJEmM+V3rxjyOm7Fvysnnw//e/7ZXS+7Gn01J9MD3EJNJDOOFKmlmtVwlPoLtLf/NVNGCMji4kb5kcw==", - "dependencies": [ - "arktype", - "cookie@1.1.1", - "typebox", - "valibot", - "zod" - ], - "optionalPeers": [ - "arktype", - "typebox", - "valibot", - "zod" - ] - }, "@aura-stack/router@0.9.0_arktype@2.2.0_typebox@1.1.38_valibot@1.4.0_zod@4.3.5": { "integrity": "sha512-8yX9GJCAvyUMNawpNB8bCwQL+9ZLYFtsm6+btcj78XegtZ83uv6Ye16MKNhyadaCN5gA8OKAVAAKORzxq22dXg==", "dependencies": [ @@ -2059,7 +2026,7 @@ }, "packages/elysia": { "dependencies": [ - "npm:@aura-stack/auth@0.8", + "npm:@aura-stack/auth@~0.8.1", "npm:elysia@^1.2.22" ], "packageJson": { @@ -2070,7 +2037,7 @@ }, "packages/express": { "dependencies": [ - "npm:@aura-stack/auth@0.8", + "npm:@aura-stack/auth@~0.8.1", "npm:express@^4.18.2" ], "packageJson": { @@ -2082,7 +2049,7 @@ }, "packages/hono": { "dependencies": [ - "npm:@aura-stack/auth@0.8", + "npm:@aura-stack/auth@~0.8.1", "npm:hono@4" ] }, @@ -2098,7 +2065,7 @@ }, "packages/next": { "dependencies": [ - "npm:@aura-stack/react@0.2", + "npm:@aura-stack/react@~0.2.1", "npm:next@16.1.6", "npm:react@19.2.3" ], @@ -2110,13 +2077,13 @@ }, "packages/react": { "dependencies": [ - "npm:@aura-stack/auth@0.8", + "npm:@aura-stack/auth@~0.8.1", "npm:react@^19.2.3" ] }, "packages/react-router": { "dependencies": [ - "npm:@aura-stack/react@0.2", + "npm:@aura-stack/react@~0.2.1", "npm:react-router@^7.12.0", "npm:react@^19.2.3" ] diff --git a/docs/src/content/docs/(core)/contributing.mdx b/docs/src/content/docs/(core)/contributing.mdx index ba8514ee..f7b2170e 100644 --- a/docs/src/content/docs/(core)/contributing.mdx +++ b/docs/src/content/docs/(core)/contributing.mdx @@ -15,7 +15,7 @@ The following steps outline how to set up the local environment. ### Fork the repository -The [Aura Auth repository](https://github.com/aura-stack-js/auth) should be forked by clicking the "Fork" button in the top right corner. +The [Aura Auth repository](https://github.com/aura-stack-ts/auth) should be forked by clicking the "Fork" button in the top right corner. diff --git a/package.json b/package.json index 6eff2c37..3ce7ef02 100644 --- a/package.json +++ b/package.json @@ -20,12 +20,21 @@ "type-check:packages": "turbo run type-check --parallel --filter=./packages/*", "create:integration": "node packages/shared/scripts/integration.js" }, + "homepage": "https://github.com/aura-stack-ts/auth#readme", + "bugs": { + "url": "https://github.com/aura-stack-ts/auth/issues", + "email": "aurastackjs@gmail.com" + }, + "license": "MIT", + "author": "Aura Stack | Hernan Alvarado ", "repository": { "type": "git", - "url": "git+https://github.com/aura-stack-js/auth.git" + "url": "git+https://github.com/aura-stack-ts/auth.git" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/halvaradop" }, - "bugs": "https://github.com/aura-stack-js/auth/issues", - "homepage": "https://github.com/aura-stack-js/auth#readme", "keywords": [ "authentication", "auth", @@ -36,17 +45,6 @@ "openid connect", "oidc" ], - "author": "Aura Stack | Hernan Alvarado ", - "license": "MIT", - "devDependencies": { - "@types/node": "catalog:node", - "@vitest/coverage-v8": "catalog:vitest", - "tsdown": "^0.21.10", - "turbo": "^2.9.18", - "typescript": "catalog:typescript", - "vitest": "catalog:vitest" - }, - "packageManager": "pnpm@10.15.0", "workspaces": { "packages": [ "packages/*", @@ -116,6 +114,18 @@ } } }, + "dependencies": { + "oxfmt": "^0.51.0", + "oxlint": "^1.69.0" + }, + "devDependencies": { + "@types/node": "catalog:node", + "@vitest/coverage-v8": "catalog:vitest", + "tsdown": "^0.21.10", + "turbo": "^2.9.18", + "typescript": "catalog:typescript", + "vitest": "catalog:vitest" + }, "overrides": { "dompurify": "^3.4.0", "file-type": "^21.3.2", @@ -131,11 +141,8 @@ "uuid": "^11.1.1", "qs": "^6.15.2" }, + "packageManager": "pnpm@10.15.0", "engines": { "node": ">=22" - }, - "dependencies": { - "oxfmt": "^0.51.0", - "oxlint": "^1.69.0" } } diff --git a/packages/core/package.json b/packages/core/package.json index 10172499..df186a0b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -19,10 +19,21 @@ "clean:cts": "[ -d dist ] && find dist -type f -name \"*.cts\" -delete || true", "prepublishOnly": "pnpm build && pnpm clean:cts" }, + "homepage": "https://aura-stack-auth.vercel.app", + "bugs": { + "url": "https://github.com/aura-stack-ts/auth/issues", + "email": "aurastackjs@gmail.com" + }, + "license": "MIT", + "author": "Aura Stack | Hernan Alvarado ", "repository": { "type": "git", "url": "git+https://github.com/aura-stack-ts/auth" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/halvaradop" + }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/@aura-stack/auth" @@ -31,6 +42,40 @@ "files": [ "dist" ], + "keywords": [ + "auth", + "oauth", + "oauth2", + "security", + "session", + "authentication", + "authorization", + "typescript", + "javascript", + "node", + "bun", + "deno", + "edge", + "aura stack", + "aura-stack", + "aura-stack-ts", + "aura stack ts" + ], + "dependencies": { + "@aura-stack/jose": "workspace:*", + "@aura-stack/rate-limiter": "workspace:*", + "@aura-stack/router": "^0.9.0", + "arktype": "^2.2.0", + "typebox": "^1.1.38", + "valibot": "catalog:valibot", + "zod": "catalog:zod-v4" + }, + "devDependencies": { + "@aura-stack/tsconfig": "workspace:*", + "@aura-stack/tsdown-config": "workspace:*", + "typescript": "catalog:typescript", + "vitest": "catalog:vitest" + }, "exports": { ".": { "types": "./dist/index.d.ts", @@ -82,45 +127,5 @@ "import": "./dist/shared/cookies.js", "require": "./dist/shared/cookies.cjs" } - }, - "keywords": [ - "auth", - "oauth", - "oauth2", - "security", - "session", - "authentication", - "authorization", - "typescript", - "javascript", - "node", - "bun", - "deno", - "edge", - "aura-stack", - "aura-stack-ts", - "aura auth", - "aura-auth" - ], - "author": "Aura Stack | Hernan Alvarado ", - "homepage": "https://aura-stack-auth.vercel.app", - "bugs": { - "url": "https://github.com/aura-stack-ts/auth/issues" - }, - "license": "MIT", - "dependencies": { - "@aura-stack/jose": "workspace:*", - "@aura-stack/rate-limiter": "workspace:*", - "@aura-stack/router": "^0.9.0", - "arktype": "^2.2.0", - "typebox": "^1.1.38", - "valibot": "catalog:valibot", - "zod": "catalog:zod-v4" - }, - "devDependencies": { - "@aura-stack/tsconfig": "workspace:*", - "@aura-stack/tsdown-config": "workspace:*", - "typescript": "catalog:typescript", - "vitest": "catalog:vitest" } } diff --git a/packages/core/src/api/refreshUserInfo.ts b/packages/core/src/api/refreshUserInfo.ts index f5735552..a8297c21 100644 --- a/packages/core/src/api/refreshUserInfo.ts +++ b/packages/core/src/api/refreshUserInfo.ts @@ -96,7 +96,6 @@ export const refreshUserInfo = async ( }, } as RefreshUserInfoAPIReturn } catch (error) { - console.warn("Error refreshing user info:", error) const { code, message, statusCode } = handleApiError( error, "UNKNOWN_REFRESH_USER_INFO_ERROR", diff --git a/packages/core/src/router/errorHandler.ts b/packages/core/src/router/errorHandler.ts index fb051cdd..e6111244 100644 --- a/packages/core/src/router/errorHandler.ts +++ b/packages/core/src/router/errorHandler.ts @@ -4,10 +4,7 @@ import type { InternalLogger } from "@/@types/index.ts" export const createErrorHandler = (logger?: InternalLogger): RouterConfig["onError"] => { return (error) => { - if (isAuraRouterError(error) || isAuraRouterValidationError(error)) { - return error.toResponse() - } - if (isAuraAuthError(error)) { + if (isAuraRouterError(error) || isAuraRouterValidationError(error) || isAuraAuthError(error)) { return error.toResponse() } logger?.log("SERVER_ERROR", { structuredData: { error_type: error.name, error_message: error.message } }) diff --git a/packages/device/package.json b/packages/device/package.json index 70bebfca..ae4d47c7 100644 --- a/packages/device/package.json +++ b/packages/device/package.json @@ -18,14 +18,55 @@ "clean:cts": "[ -d dist ] && find dist -type f -name \"*.cts\" -delete || true", "prepublishOnly": "pnpm clean:cts && pnpm build && pnpm clean:cts" }, + "homepage": "https://aura-stack-auth.vercel.app", + "bugs": { + "url": "https://github.com/aura-stack-ts/auth/issues", + "email": "aurastackjs@gmail.com" + }, + "license": "MIT", + "author": "Aura Stack | Hernan Alvarado ", "repository": { "type": "git", "url": "git+https://github.com/aura-stack-ts/auth" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/halvaradop" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/@aura-stack/device" + }, "sideEffects": false, "files": [ "dist" ], + "keywords": [ + "auth", + "oauth", + "oauth2", + "security", + "session", + "authentication", + "authorization", + "typescript", + "javascript", + "device authorization grant", + "device flow", + "device grant", + "device code", + "aura stack", + "aura-stack", + "aura-stack-ts", + "aura stack ts" + ], + "dependencies": { + "valibot": "catalog:valibot" + }, + "devDependencies": { + "@aura-stack/tsconfig": "workspace:*", + "@aura-stack/tsdown-config": "workspace:*" + }, "exports": { ".": { "types": "./dist/index.d.ts", @@ -43,20 +84,5 @@ "require": "./dist/providers/*.cjs" } }, - "keywords": [], - "author": "Aura Stack | Hernan Alvarado ", - "homepage": "https://aura-stack-auth.vercel.app", - "bugs": { - "url": "https://github.com/aura-stack-ts/auth/issues" - }, - "license": "MIT", - "dependencies": { - "valibot": "catalog:valibot" - }, - "devDependencies": { - "@aura-stack/tsconfig": "workspace:*", - "@aura-stack/tsdown-config": "workspace:*" - }, - "peerDependencies": {}, "packageManager": "pnpm@10.15.0" } diff --git a/packages/elysia/package.json b/packages/elysia/package.json index 8e536132..5f37a8c0 100644 --- a/packages/elysia/package.json +++ b/packages/elysia/package.json @@ -20,14 +20,61 @@ "prepublishOnly": "pnpm sync:modules && pnpm build && pnpm clean:cts", "sync:modules": "node ../shared/scripts/modules.js" }, + "homepage": "https://aura-stack-auth.vercel.app", + "bugs": { + "url": "https://github.com/aura-stack-ts/auth/issues", + "email": "aurastackjs@gmail.com" + }, + "license": "MIT", + "author": "Aura Stack | Hernan Alvarado ", "repository": { "type": "git", "url": "git+https://github.com/aura-stack-ts/auth" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/halvaradop" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/@aura-stack/elysia" + }, "sideEffects": false, "files": [ "dist" ], + "keywords": [ + "auth", + "oauth", + "oauth2", + "security", + "session", + "authentication", + "authorization", + "elysia", + "elysiajs", + "bun", + "middleware", + "typescript", + "javascript", + "web-api", + "aura-stack", + "aura-stack-ts", + "aura auth", + "aura-auth" + ], + "dependencies": { + "@aura-stack/auth": "workspace:*" + }, + "devDependencies": { + "@aura-stack/tsconfig": "workspace:*", + "@aura-stack/tsdown-config": "workspace:*", + "elysia": "^1.2.22", + "vitest": "catalog:vitest" + }, + "peerDependencies": { + "elysia": ">=1.0.0" + }, "exports": { ".": { "types": "./dist/index.d.ts", @@ -70,43 +117,5 @@ "require": "./dist/_core/cookies.cjs" } }, - "keywords": [ - "auth", - "oauth", - "oauth2", - "security", - "session", - "authentication", - "authorization", - "elysia", - "elysiajs", - "bun", - "middleware", - "typescript", - "javascript", - "web-api", - "aura-stack", - "aura-stack-ts", - "aura auth", - "aura-auth" - ], - "author": "Aura Stack | Hernan Alvarado ", - "homepage": "https://aura-stack-auth.vercel.app", - "bugs": { - "url": "https://github.com/aura-stack-ts/auth/issues" - }, - "license": "MIT", - "dependencies": { - "@aura-stack/auth": "workspace:*" - }, - "devDependencies": { - "@aura-stack/tsconfig": "workspace:*", - "@aura-stack/tsdown-config": "workspace:*", - "elysia": "^1.2.22", - "vitest": "catalog:vitest" - }, - "peerDependencies": { - "elysia": ">=1.0.0" - }, "packageManager": "pnpm@10.15.0" } diff --git a/packages/express/package.json b/packages/express/package.json index 4ad42efa..5108debf 100644 --- a/packages/express/package.json +++ b/packages/express/package.json @@ -20,14 +20,66 @@ "prepublishOnly": "pnpm sync:modules && pnpm build && pnpm clean:cts", "sync:modules": "node ../shared/scripts/modules.js" }, + "homepage": "https://aura-stack-auth.vercel.app", + "bugs": { + "url": "https://github.com/aura-stack-ts/auth/issues", + "email": "aurastackjs@gmail.com" + }, + "license": "MIT", + "author": "Aura Stack | Hernan Alvarado ", "repository": { "type": "git", "url": "git+https://github.com/aura-stack-ts/auth" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/halvaradop" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/@aura-stack/express" + }, "sideEffects": false, "files": [ "dist" ], + "keywords": [ + "auth", + "oauth", + "oauth2", + "security", + "session", + "authentication", + "authorization", + "express", + "expressjs", + "node", + "bun", + "deno", + "middleware", + "typescript", + "javascript", + "web-api", + "aura stack", + "aura-stack", + "aura-stack-ts", + "aura stack ts" + ], + "dependencies": { + "@aura-stack/auth": "workspace:*" + }, + "devDependencies": { + "@aura-stack/tsconfig": "workspace:*", + "@aura-stack/tsdown-config": "workspace:*", + "@types/express": "catalog:express", + "@types/supertest": "^7.2.0", + "express": "catalog:express", + "supertest": "^7.2.2", + "vitest": "catalog:vitest" + }, + "peerDependencies": { + "express": ">=4.0.0" + }, "exports": { ".": { "types": "./dist/index.d.ts", @@ -70,48 +122,5 @@ "require": "./dist/_core/cookies.cjs" } }, - "keywords": [ - "auth", - "oauth", - "oauth2", - "security", - "session", - "authentication", - "authorization", - "express", - "expressjs", - "node", - "bun", - "deno", - "middleware", - "typescript", - "javascript", - "web-api", - "aura-stack", - "aura-stack-ts", - "aura auth", - "aura-auth" - ], - "author": "Aura Stack | Hernan Alvarado ", - "homepage": "https://aura-stack-auth.vercel.app", - "bugs": { - "url": "https://github.com/aura-stack-ts/auth/issues" - }, - "license": "MIT", - "dependencies": { - "@aura-stack/auth": "workspace:*" - }, - "devDependencies": { - "@aura-stack/tsconfig": "workspace:*", - "@aura-stack/tsdown-config": "workspace:*", - "@types/express": "catalog:express", - "@types/supertest": "^7.2.0", - "express": "catalog:express", - "supertest": "^7.2.2", - "vitest": "catalog:vitest" - }, - "peerDependencies": { - "express": ">=4.0.0" - }, "packageManager": "pnpm@10.15.0" } diff --git a/packages/hono/package.json b/packages/hono/package.json index 3e36f5ac..2db3beef 100644 --- a/packages/hono/package.json +++ b/packages/hono/package.json @@ -20,14 +20,64 @@ "prepublishOnly": "pnpm sync:modules && pnpm build && pnpm clean:cts", "sync:modules": "node ../shared/scripts/modules.js" }, + "homepage": "https://aura-stack-auth.vercel.app", + "bugs": { + "url": "https://github.com/aura-stack-ts/auth/issues", + "email": "aurastackjs@gmail.com" + }, + "license": "MIT", + "author": "Aura Stack | Hernan Alvarado ", "repository": { "type": "git", "url": "git+https://github.com/aura-stack-ts/auth" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/halvaradop" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/@aura-stack/hono" + }, "sideEffects": false, "files": [ "dist" ], + "keywords": [ + "auth", + "oauth", + "oauth2", + "security", + "session", + "authentication", + "authorization", + "hono", + "honojs", + "bun", + "edge-runtime", + "cloudflare-workers", + "middleware", + "typescript", + "javascript", + "web-api", + "aura stack", + "aura-stack", + "aura-stack-ts", + "aura stack ts" + ], + "dependencies": { + "@aura-stack/auth": "workspace:*" + }, + "devDependencies": { + "@aura-stack/tsconfig": "workspace:*", + "@aura-stack/tsdown-config": "workspace:*", + "hono": "catalog:hono", + "@types/bun": "catalog:bun", + "vitest": "catalog:vitest" + }, + "peerDependencies": { + "hono": ">=4.0.0" + }, "exports": { ".": { "types": "./dist/index.d.ts", @@ -70,46 +120,5 @@ "require": "./dist/_core/cookies.cjs" } }, - "keywords": [ - "auth", - "oauth", - "oauth2", - "security", - "session", - "authentication", - "authorization", - "hono", - "honojs", - "bun", - "edge-runtime", - "cloudflare-workers", - "middleware", - "typescript", - "javascript", - "web-api", - "aura-stack", - "aura-stack-ts", - "aura auth", - "aura-auth" - ], - "author": "Aura Stack | Hernan Alvarado ", - "homepage": "https://aura-stack-auth.vercel.app", - "bugs": { - "url": "https://github.com/aura-stack-ts/auth/issues" - }, - "license": "MIT", - "dependencies": { - "@aura-stack/auth": "workspace:*" - }, - "devDependencies": { - "@aura-stack/tsconfig": "workspace:*", - "@aura-stack/tsdown-config": "workspace:*", - "hono": "catalog:hono", - "@types/bun": "catalog:bun", - "vitest": "catalog:vitest" - }, - "peerDependencies": { - "hono": ">=4.0.0" - }, "packageManager": "pnpm@10.15.0" } diff --git a/packages/integration/package.json b/packages/integration/package.json index 1f5587a3..32fdf780 100644 --- a/packages/integration/package.json +++ b/packages/integration/package.json @@ -20,14 +20,38 @@ "prepublishOnly": "pnpm clean:cts && pnpm build && pnpm clean:cts", "sync:modules": "node ../shared/scripts/modules.js" }, + "homepage": "https://aura-stack-auth.vercel.app", + "bugs": { + "url": "https://github.com/aura-stack-ts/auth/issues", + "email": "aurastackjs@gmail.com" + }, + "license": "MIT", + "author": "Aura Stack | Hernan Alvarado ", "repository": { "type": "git", "url": "git+https://github.com/aura-stack-ts/auth" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/halvaradop" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/" + }, "sideEffects": false, "files": [ "dist" ], + "keywords": [], + "dependencies": { + "@aura-stack/auth": "workspace:*" + }, + "devDependencies": { + "@aura-stack/tsconfig": "workspace:*", + "@aura-stack/tsdown-config": "workspace:*" + }, + "peerDependencies": {}, "exports": { ".": { "types": "./dist/index.d.ts", @@ -65,20 +89,5 @@ "require": "./dist/_core/cookies.cjs" } }, - "keywords": [], - "author": "Aura Stack | Hernan Alvarado ", - "homepage": "https://aura-stack-auth.vercel.app", - "bugs": { - "url": "https://github.com/aura-stack-ts/auth/issues" - }, - "license": "MIT", - "dependencies": { - "@aura-stack/auth": "workspace:*" - }, - "devDependencies": { - "@aura-stack/tsconfig": "workspace:*", - "@aura-stack/tsdown-config": "workspace:*" - }, - "peerDependencies": {}, "packageManager": "pnpm@10.15.0" } diff --git a/packages/jose/package.json b/packages/jose/package.json index 2e6aeff2..879abdbe 100644 --- a/packages/jose/package.json +++ b/packages/jose/package.json @@ -19,49 +19,28 @@ "clean:cts": "[ -d dist ] && find dist -type f -name \"*.cts\" -delete || true", "prepublishOnly": "pnpm build && pnpm clean:cts" }, + "homepage": "https://aura-stack-auth.vercel.app", + "bugs": { + "url": "https://github.com/aura-stack-ts/auth/issues", + "email": "aurastackjs@gmail.com" + }, + "license": "MIT", + "author": "Aura Stack | Hernan Alvarado ", "repository": { "type": "git", "url": "git+https://github.com/aura-stack-ts/auth" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/halvaradop" + }, "publishConfig": { "access": "public", - "registry": "https://registry.npmjs.org/" + "registry": "https://registry.npmjs.org/@aura-stack/jose" }, "files": [ "dist" ], - "exports": { - ".": { - "types": "./dist/index.d.ts", - "require": "./dist/index.cjs", - "import": "./dist/index.js" - }, - "./encrypt": { - "types": "./dist/encrypt.d.ts", - "require": "./dist/encrypt.cjs", - "import": "./dist/encrypt.js" - }, - "./sign": { - "types": "./dist/sign.d.ts", - "require": "./dist/sign.cjs", - "import": "./dist/sign.js" - }, - "./jose": { - "types": "./dist/jose.d.ts", - "require": "./dist/jose.cjs", - "import": "./dist/jose.js" - }, - "./hkdf": { - "types": "./dist/deriveKey.d.ts", - "require": "./dist/deriveKey.cjs", - "import": "./dist/deriveKey.js" - }, - "./crypto": { - "types": "./dist/crypto.d.ts", - "require": "./dist/crypto.cjs", - "import": "./dist/crypto.js" - } - }, "keywords": [ "auth", "session", @@ -86,12 +65,6 @@ "aura auth", "aura-auth" ], - "author": "Aura Stack | Hernan Alvarado ", - "homepage": "https://aura-stack-auth.vercel.app", - "bugs": { - "url": "https://github.com/aura-stack-ts/auth/issues" - }, - "license": "MIT", "dependencies": { "jose": "^6.1.2" }, @@ -100,5 +73,37 @@ "@aura-stack/tsdown-config": "workspace:*", "typescript": "catalog:typescript", "vitest": "catalog:vitest" + }, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "require": "./dist/index.cjs", + "import": "./dist/index.js" + }, + "./encrypt": { + "types": "./dist/encrypt.d.ts", + "require": "./dist/encrypt.cjs", + "import": "./dist/encrypt.js" + }, + "./sign": { + "types": "./dist/sign.d.ts", + "require": "./dist/sign.cjs", + "import": "./dist/sign.js" + }, + "./jose": { + "types": "./dist/jose.d.ts", + "require": "./dist/jose.cjs", + "import": "./dist/jose.js" + }, + "./hkdf": { + "types": "./dist/deriveKey.d.ts", + "require": "./dist/deriveKey.cjs", + "import": "./dist/deriveKey.js" + }, + "./crypto": { + "types": "./dist/crypto.d.ts", + "require": "./dist/crypto.cjs", + "import": "./dist/crypto.js" + } } } diff --git a/packages/next/package.json b/packages/next/package.json index 5282d8a5..38d88d87 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -20,14 +20,73 @@ "prepublishOnly": "pnpm sync:modules && pnpm build && pnpm clean:cts", "sync:modules": "node ../shared/scripts/modules.js --from react" }, + "homepage": "https://aura-stack-auth.vercel.app", + "bugs": { + "url": "https://github.com/aura-stack-ts/auth/issues", + "email": "aurastackjs@gmail.com" + }, + "license": "MIT", + "author": "Aura Stack | Hernan Alvarado ", "repository": { "type": "git", "url": "git+https://github.com/aura-stack-ts/auth" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/halvaradop" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/@aura-stack/next" + }, "sideEffects": false, "files": [ "dist" ], + "keywords": [ + "auth", + "oauth", + "oauth2", + "security", + "session", + "authentication", + "authorization", + "nextjs", + "next.js", + "server components", + "client components", + "server actions", + "server-side rendering", + "client-side rendering", + "react", + "typescript", + "javascript", + "web-api", + "aura-stack", + "aura-stack-ts", + "aura stack", + "aura stack ts" + ], + "dependencies": { + "@aura-stack/react": "workspace:*" + }, + "devDependencies": { + "@aura-stack/tsconfig": "workspace:*", + "@aura-stack/tsdown-config": "workspace:*", + "@testing-library/dom": "catalog:testing-library", + "@testing-library/react": "catalog:testing-library", + "@types/react": "catalog:react", + "@types/react-dom": "catalog:react", + "next": "catalog:next", + "node-mocks-http": "^1.17.2", + "react": "catalog:react", + "react-dom": "catalog:react" + }, + "peerDependencies": { + "next": ">=16.0.0", + "react": ">=19.0.0", + "react-dom": ">=19.0.0" + }, "exports": { ".": { "types": "./dist/index.d.ts", @@ -96,55 +155,5 @@ }, "./types": "./dist/@types/index.d.ts" }, - "keywords": [ - "auth", - "oauth", - "oauth2", - "security", - "session", - "authentication", - "authorization", - "nextjs", - "next.js", - "server components", - "client components", - "server actions", - "server-side rendering", - "client-side rendering", - "react", - "typescript", - "javascript", - "web-api", - "aura-stack", - "aura-stack-ts", - "aura auth", - "aura-auth" - ], - "author": "Aura Stack | Hernan Alvarado ", - "homepage": "https://aura-stack-auth.vercel.app", - "bugs": { - "url": "https://github.com/aura-stack-ts/auth/issues" - }, - "license": "MIT", - "dependencies": { - "@aura-stack/react": "workspace:*" - }, - "devDependencies": { - "@aura-stack/tsconfig": "workspace:*", - "@aura-stack/tsdown-config": "workspace:*", - "@testing-library/dom": "catalog:testing-library", - "@testing-library/react": "catalog:testing-library", - "@types/react": "catalog:react", - "@types/react-dom": "catalog:react", - "next": "catalog:next", - "node-mocks-http": "^1.17.2", - "react": "catalog:react", - "react-dom": "catalog:react" - }, - "peerDependencies": { - "next": ">=16.0.0", - "react": ">=19.0.0", - "react-dom": ">=19.0.0" - }, "packageManager": "pnpm@10.15.0" } diff --git a/packages/rate-limiter/package.json b/packages/rate-limiter/package.json index 5c7466c0..64453d6e 100644 --- a/packages/rate-limiter/package.json +++ b/packages/rate-limiter/package.json @@ -19,12 +19,24 @@ "clean:cts": "[ -d dist ] && find dist -type f -name \"*.cts\" -delete || true", "prepublishOnly": "pnpm build && pnpm clean:cts" }, + "homepage": "https://aura-stack-auth.vercel.app", + "bugs": { + "url": "https://github.com/aura-stack-ts/auth/issues", + "email": "aurastackjs@gmail.com" + }, + "license": "MIT", + "author": "Aura Stack | Hernan Alvarado ", "repository": { "type": "git", "url": "git+https://github.com/aura-stack-ts/auth" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/halvaradop" + }, "publishConfig": { - "access": "public" + "access": "public", + "registry": "https://registry.npmjs.org/@aura-stack/rate-limiter" }, "files": [ "dist" @@ -41,8 +53,17 @@ "typescript", "javascript", "nodejs", - "edge-runtime" + "edge-runtime", + "aura stack", + "aura-stack", + "aura-stack-ts", + "aura stack ts" ], + "devDependencies": { + "@aura-stack/tsconfig": "workspace:*", + "@aura-stack/tsdown-config": "workspace:*", + "vitest": "catalog:vitest" + }, "exports": { ".": { "types": "./dist/index.d.ts", @@ -61,16 +82,5 @@ }, "./types": "./dist/types.d.ts" }, - "author": "Aura Stack | Hernan Alvarado ", - "homepage": "https://aura-stack-auth.vercel.app", - "bugs": { - "url": "https://github.com/aura-stack-ts/auth/issues" - }, - "license": "MIT", - "devDependencies": { - "@aura-stack/tsconfig": "workspace:*", - "@aura-stack/tsdown-config": "workspace:*", - "vitest": "catalog:vitest" - }, "packageManager": "pnpm@10.15.0" } diff --git a/packages/react-router/package.json b/packages/react-router/package.json index a2d1c6be..9d8293ca 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -20,14 +20,65 @@ "prepublishOnly": "pnpm sync:modules && pnpm build && pnpm clean:cts", "sync:modules": "node ../shared/scripts/modules.js --from react" }, + "homepage": "https://aura-stack-auth.vercel.app", + "bugs": { + "url": "https://github.com/aura-stack-ts/auth/issues", + "email": "aurastackjs@gmail.com" + }, + "license": "MIT", + "author": "Aura Stack | Hernan Alvarado ", "repository": { "type": "git", "url": "git+https://github.com/aura-stack-ts/auth" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/halvaradop" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/@aura-stack/auth" + }, "sideEffects": false, "files": [ "dist" ], + "keywords": [ + "react-router", + "react", + "authentication", + "auth", + "oauth", + "jwt", + "session", + "ssr", + "routing", + "authorization", + "typescript", + "web", + "web-api", + "aura-stack", + "aura-stack-ts", + "aura stack", + "aura stack ts" + ], + "dependencies": { + "@aura-stack/react": "workspace:*" + }, + "devDependencies": { + "@aura-stack/tsconfig": "workspace:*", + "@aura-stack/tsdown-config": "workspace:*", + "react": "catalog:react", + "react-dom": "catalog:react", + "react-router": "catalog:react-router", + "@types/react": "catalog:react", + "@types/react-dom": "catalog:react", + "@testing-library/dom": "catalog:testing-library", + "@testing-library/react": "catalog:testing-library" + }, + "peerDependencies": { + "react-router": ">=7.0.0" + }, "exports": { ".": { "types": "./dist/index.d.ts", @@ -76,47 +127,5 @@ }, "./types": "./dist/@types/index.d.ts" }, - "keywords": [ - "react-router", - "react", - "authentication", - "auth", - "oauth", - "jwt", - "session", - "ssr", - "routing", - "authorization", - "typescript", - "web", - "web-api", - "aura-stack", - "aura-stack-ts", - "aura auth", - "aura-auth" - ], - "author": "Aura Stack | Hernan Alvarado ", - "homepage": "https://aura-stack-auth.vercel.app", - "bugs": { - "url": "https://github.com/aura-stack-ts/auth/issues" - }, - "license": "MIT", - "dependencies": { - "@aura-stack/react": "workspace:*" - }, - "devDependencies": { - "@aura-stack/tsconfig": "workspace:*", - "@aura-stack/tsdown-config": "workspace:*", - "react": "catalog:react", - "react-dom": "catalog:react", - "react-router": "catalog:react-router", - "@types/react": "catalog:react", - "@types/react-dom": "catalog:react", - "@testing-library/dom": "catalog:testing-library", - "@testing-library/react": "catalog:testing-library" - }, - "peerDependencies": { - "react-router": ">=7.0.0" - }, "packageManager": "pnpm@10.15.0" } diff --git a/packages/react/package.json b/packages/react/package.json index 3733907a..424e33ae 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -20,16 +20,64 @@ "prepublishOnly": "pnpm sync:modules && pnpm build && pnpm clean:cts", "sync:modules": "node ../shared/scripts/modules.js" }, + "homepage": "https://aura-stack-auth.vercel.app", + "bugs": { + "url": "https://github.com/aura-stack-ts/auth/issues", + "email": "aurastackjs@gmail.com" + }, + "license": "MIT", + "author": "Aura Stack | Hernan Alvarado ", "repository": { "type": "git", "url": "git+https://github.com/aura-stack-ts/auth" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/halvaradop" + }, "publishConfig": { - "access": "public" + "access": "public", + "registry": "https://registry.npmjs.org/@aura-stack/react" }, "files": [ "dist" ], + "keywords": [ + "react", + "authentication", + "auth", + "oauth", + "jwt", + "session", + "context", + "hooks", + "typescript", + "javascript", + "authorization", + "frontend", + "web-api", + "aura-stack", + "aura-stack-ts", + "aura stack", + "aura stack ts" + ], + "dependencies": { + "@aura-stack/auth": "workspace:*" + }, + "devDependencies": { + "@aura-stack/tsconfig": "workspace:*", + "@aura-stack/tsdown-config": "workspace:*", + "@testing-library/dom": "catalog:testing-library", + "@testing-library/react": "catalog:testing-library", + "@testing-library/user-event": "catalog:testing-library", + "vitest": "catalog:vitest", + "react": "catalog:react", + "@types/react": "catalog:react" + }, + "peerDependencies": { + "react": ">=19.0.0", + "@types/react": ">=19.0.0" + }, "exports": { ".": { "types": "./dist/index.d.ts", @@ -88,47 +136,5 @@ }, "./types": "./dist/@types/index.d.ts" }, - "keywords": [ - "react", - "authentication", - "auth", - "oauth", - "jwt", - "session", - "context", - "hooks", - "typescript", - "javascript", - "authorization", - "frontend", - "web-api", - "aura-stack", - "aura-stack-ts", - "aura auth", - "aura-auth" - ], - "author": "Aura Stack | Hernan Alvarado ", - "homepage": "https://aura-stack-auth.vercel.app", - "bugs": { - "url": "https://github.com/aura-stack-ts/auth/issues" - }, - "license": "MIT", - "dependencies": { - "@aura-stack/auth": "workspace:*" - }, - "devDependencies": { - "@aura-stack/tsconfig": "workspace:*", - "@aura-stack/tsdown-config": "workspace:*", - "@testing-library/dom": "catalog:testing-library", - "@testing-library/react": "catalog:testing-library", - "@testing-library/user-event": "catalog:testing-library", - "vitest": "catalog:vitest", - "react": "catalog:react", - "@types/react": "catalog:react" - }, - "peerDependencies": { - "react": ">=19.0.0", - "@types/react": ">=19.0.0" - }, "packageManager": "pnpm@10.15.0" }