@ioloco/oauth
Version:
OAuth 2.0 utility library that provides helper functions for integrating third-party login providers. Designed to simplify the token exchange and user-fetch flows, while leaving API route implementation to the developer.
93 lines (92 loc) • 2.48 kB
JSON
{
"name": "@ioloco/oauth",
"version": "0.1.0",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"description": "OAuth 2.0 utility library that provides helper functions for integrating third-party login providers. Designed to simplify the token exchange and user-fetch flows, while leaving API route implementation to the developer.",
"keywords": [
"oauth2",
"oauth",
"authentication",
"third-party-login",
"oauth-client",
"nodejs",
"next.js",
"fastify",
"typescript",
"auth-integration"
],
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist"
],
"scripts": {
"clean": "rm -rf dist",
"================[Build Scripts]": "================",
"build:js": "rollup -c",
"build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly",
"build": "pnpm run clean && pnpm run build:js && pnpm run build:types",
"================[Start Scripts]": "================",
"dev": "rollup -c --watch",
"================[Testing Scripts]": "================",
"test:unit": "vitest run",
"test:watch": "vitest watch",
"================[CI/CD Stages]": "================",
"cicd:prettier": "prettier --write 'src/**/*.{js,ts}'",
"cicd:lint": "eslint . --ext .ts,.tsx"
},
"peerDependencies": {
"zod": "^3.24.3"
},
"devDependencies": {
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-commonjs": "^28.0.3",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.2",
"@types/node": "^20.17.46",
"eslint": "^9.0.0",
"eslint-config-next": "^15.3.1",
"rollup": "^4.40.2",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-dts": "^6.2.1",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-preserve-directives": "^0.4.0",
"ts-node": "^10.9.2",
"tsc-alias": "^1.8.16",
"typescript": "^5",
"vitest": "^3.1.3",
"zod": "^3.24.3"
},
"tsc-alias": {
"verbose": true,
"resolveFullPaths": true,
"fileExtensions": {
"inputGlob": "{js,mjs}",
"outputCheck": [
"js",
"json",
"mjs"
]
}
},
"ts-node": {
"require": [
"tsconfig-paths/register"
]
},
"engines": {
"node": ">=18"
},
"sideEffects": false
}