honojs-middleware/packages/oauth-providers/package.json

140 lines
3.6 KiB
JSON
Raw Normal View History

{
"name": "@hono/oauth-providers",
"version": "0.7.0",
"description": "Social login for Hono JS, integrate authentication with facebook, github, google and linkedin to your projects.",
"main": "dist/index.js",
"files": [
"./dist"
],
"scripts": {
"test": "vitest",
"build": "tsup && publint",
"watch": "tsup --watch",
"publint": "publint",
"release": "yarn build && yarn test && yarn publint && yarn publish"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./google": {
"import": {
"types": "./dist/providers/google/index.d.mts",
"default": "./dist/providers/google/index.mjs"
},
"require": {
"types": "./dist/providers/google/index.d.ts",
"default": "./dist/providers/google/index.js"
}
},
"./facebook": {
"import": {
"types": "./dist/providers/facebook/index.d.mts",
"default": "./dist/providers/facebook/index.mjs"
},
"require": {
"types": "./dist/providers/facebook/index.d.ts",
"default": "./dist/providers/facebook/index.js"
}
},
"./github": {
"import": {
"types": "./dist/providers/github/index.d.mts",
"default": "./dist/providers/github/index.mjs"
},
"require": {
"types": "./dist/providers/github/index.d.ts",
"default": "./dist/providers/github/index.js"
}
},
"./linkedin": {
"import": {
"types": "./dist/providers/linkedin/index.d.mts",
"default": "./dist/providers/linkedin/index.mjs"
},
"require": {
"types": "./dist/providers/linkedin/index.d.ts",
"default": "./dist/providers/linkedin/index.js"
}
},
"./x": {
"import": {
"types": "./dist/providers/x/index.d.mts",
"default": "./dist/providers/x/index.mjs"
},
"require": {
"types": "./dist/providers/x/index.d.ts",
"default": "./dist/providers/x/index.js"
}
2024-01-08 04:22:20 +08:00
},
"./discord": {
"import": {
"types": "./dist/providers/discord/index.d.mts",
"default": "./dist/providers/discord/index.mjs"
},
"require": {
"types": "./dist/providers/discord/index.d.ts",
"default": "./dist/providers/discord/index.js"
}
feat(oauth-providers): Add Twitch OAuth Provider (#981) * feat(twitch): Add type definitions for Twitch OAuth scopes * feat(twitch): Add additional type definitions for Twitch moderator scopes * feat(twitch): Add IRC and PubSub-specific chat scopes to types * feat(twitch): Add new type definitions for Twitch API responses * feat(twitch): Add new user-related scopes for Twitch API * feat(twitch): Add type definitions and import paths for Twitch provider * feat(twitch): Implement Twitch OAuth handlers and response types for mock api * feat(twitch): Add revokeToken function to handle OAuth token revocation * feat(twitch): Add Twitch OAuth middleware mocks and tests * feat(twitch): Implement Twitch OAuth authentication flow and user data retrieval * feat(twitch): Add custom state handling for Twitch OAuth middleware * docs(twitch): Update README with Twitch OAuth integration details * docs: Update Twitch API reference link for scopes in README * fix(twitch): Remove error handling for error_description in auth flow * refactor(twitch): Update token handling and response types for refresh and revoke * feat(twitch): Add token validation function for Twitch OAuth * feat(twitch): Add token validation handler and update response types * docs: Add token validation section to README for Twitch integration * chore(oauth-providers): changesets summary * fix(twitch): make redirect_uri optional in twitchAuth options * refactor(twitch): clean up commented code and improve test assertions * refactor(twitch): improve type assertions for JSON responses * refactor(twitch): update type assertion for JSON response handling * semver amendment Changed version from patch to minor * docs: update README with token validation instructions for Twitch --------- Co-authored-by: Younis-Ahmed <23105954+jonaahmed@users.noreply.github.com>
2025-03-12 16:55:47 +08:00
},
"./twitch": {
feat(oauth-providers): Add Twitch OAuth Provider (#981) * feat(twitch): Add type definitions for Twitch OAuth scopes * feat(twitch): Add additional type definitions for Twitch moderator scopes * feat(twitch): Add IRC and PubSub-specific chat scopes to types * feat(twitch): Add new type definitions for Twitch API responses * feat(twitch): Add new user-related scopes for Twitch API * feat(twitch): Add type definitions and import paths for Twitch provider * feat(twitch): Implement Twitch OAuth handlers and response types for mock api * feat(twitch): Add revokeToken function to handle OAuth token revocation * feat(twitch): Add Twitch OAuth middleware mocks and tests * feat(twitch): Implement Twitch OAuth authentication flow and user data retrieval * feat(twitch): Add custom state handling for Twitch OAuth middleware * docs(twitch): Update README with Twitch OAuth integration details * docs: Update Twitch API reference link for scopes in README * fix(twitch): Remove error handling for error_description in auth flow * refactor(twitch): Update token handling and response types for refresh and revoke * feat(twitch): Add token validation function for Twitch OAuth * feat(twitch): Add token validation handler and update response types * docs: Add token validation section to README for Twitch integration * chore(oauth-providers): changesets summary * fix(twitch): make redirect_uri optional in twitchAuth options * refactor(twitch): clean up commented code and improve test assertions * refactor(twitch): improve type assertions for JSON responses * refactor(twitch): update type assertion for JSON response handling * semver amendment Changed version from patch to minor * docs: update README with token validation instructions for Twitch --------- Co-authored-by: Younis-Ahmed <23105954+jonaahmed@users.noreply.github.com>
2025-03-12 16:55:47 +08:00
"import": {
"types": "./dist/providers/twitch/index.d.mts",
"default": "./dist/providers/twitch/index.mjs"
},
"require": {
"types": "./dist/providers/twitch/index.d.ts",
"default": "./dist/providers/twitch/index.js"
}
}
},
"typesVersions": {
"*": {
"facebook": [
"./dist/providers/facebook/index.d.ts"
],
"github": [
"./dist/providers/github/index.d.ts"
],
"google": [
"./dist/providers/google/index.d.ts"
],
"linkedin": [
"./dist/providers/linkedin/index.d.ts"
],
"x": [
"./dist/providers/x/index.d.ts"
2024-01-08 04:22:20 +08:00
],
"discord": [
"./dist/providers/discord/index.d.ts"
feat(oauth-providers): Add Twitch OAuth Provider (#981) * feat(twitch): Add type definitions for Twitch OAuth scopes * feat(twitch): Add additional type definitions for Twitch moderator scopes * feat(twitch): Add IRC and PubSub-specific chat scopes to types * feat(twitch): Add new type definitions for Twitch API responses * feat(twitch): Add new user-related scopes for Twitch API * feat(twitch): Add type definitions and import paths for Twitch provider * feat(twitch): Implement Twitch OAuth handlers and response types for mock api * feat(twitch): Add revokeToken function to handle OAuth token revocation * feat(twitch): Add Twitch OAuth middleware mocks and tests * feat(twitch): Implement Twitch OAuth authentication flow and user data retrieval * feat(twitch): Add custom state handling for Twitch OAuth middleware * docs(twitch): Update README with Twitch OAuth integration details * docs: Update Twitch API reference link for scopes in README * fix(twitch): Remove error handling for error_description in auth flow * refactor(twitch): Update token handling and response types for refresh and revoke * feat(twitch): Add token validation function for Twitch OAuth * feat(twitch): Add token validation handler and update response types * docs: Add token validation section to README for Twitch integration * chore(oauth-providers): changesets summary * fix(twitch): make redirect_uri optional in twitchAuth options * refactor(twitch): clean up commented code and improve test assertions * refactor(twitch): improve type assertions for JSON responses * refactor(twitch): update type assertion for JSON response handling * semver amendment Changed version from patch to minor * docs: update README with token validation instructions for Twitch --------- Co-authored-by: Younis-Ahmed <23105954+jonaahmed@users.noreply.github.com>
2025-03-12 16:55:47 +08:00
],
"twitch": [
"./dist/providers/twitch/index.d.ts"
]
}
},
"peerDependencies": {
"hono": ">=3.*"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20231025.0",
"hono": "^4.5.1",
"msw": "^2.0.11",
"patch-package": "^8.0.0",
"publint": "^0.2.6",
"tsup": "^8.0.0",
"typescript": "^5.2.2",
"vitest": "^3.0.8"
},
"engines": {
"node": ">=18.4.0"
}
}