Version Packages (#1014)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>pull/980/head^2 @hono/oauth-providers@0.7.0
parent
e5f383787c
commit
e394e64ea5
|
@ -1,17 +0,0 @@
|
||||||
---
|
|
||||||
'@hono/oauth-providers': minor
|
|
||||||
---
|
|
||||||
|
|
||||||
These chages introduces a Twitch OAuth provider, expanding the middleware's OAuth offerings. It includes a new middleware for Twitch authentication, a dedicated `AuthFlow` class, token refreshing/revocation/validation, and comprehensive type definitions. Detailed tests ensure correct behavior and error handling.
|
|
||||||
|
|
||||||
- **Twitch OAuth Middleware `src/providers/twitch/twitchAuth.ts`:** Implements the core authentication flow, handling state management, redirects, and context variable setting (`token`, `refresh-token`, `user-twitch`, `granted-scopes`).
|
|
||||||
|
|
||||||
- **AuthFlow Class `src/providers/twitch/authFlow.ts`:** Encapsulates token exchange and user data retrieval, with robust error handling.
|
|
||||||
|
|
||||||
- **Token Operations `src/providers/twitch/refreshToken.ts`:** Provides functions for refreshing and revoking tokens.
|
|
||||||
|
|
||||||
- **Type Definitions `src/providers/twitch/types.ts:** Defines comprehensive types for Twitch API responses.
|
|
||||||
|
|
||||||
- **Extensive Testing (`test/handlers.ts`, `test/index.test.ts`):** Includes unit tests covering redirection, valid code flow, error handling, refresh/revoke token, custom and built-in state scenarios, using a mock server.
|
|
||||||
|
|
||||||
- **Validate Token `src/providers/twitch/validateToken`**: That hit `/validate` endpoint to verify that the access token is still valid for reasons other than token expiring.
|
|
|
@ -1,5 +1,23 @@
|
||||||
# @hono/oauth-providers
|
# @hono/oauth-providers
|
||||||
|
|
||||||
|
## 0.7.0
|
||||||
|
|
||||||
|
### Minor Changes
|
||||||
|
|
||||||
|
- [#981](https://github.com/honojs/middleware/pull/981) [`e5f383787c2bd47657f67a99074515eab969963b`](https://github.com/honojs/middleware/commit/e5f383787c2bd47657f67a99074515eab969963b) Thanks [@Younis-Ahmed](https://github.com/Younis-Ahmed)! - These chages introduces a Twitch OAuth provider, expanding the middleware's OAuth offerings. It includes a new middleware for Twitch authentication, a dedicated `AuthFlow` class, token refreshing/revocation/validation, and comprehensive type definitions. Detailed tests ensure correct behavior and error handling.
|
||||||
|
|
||||||
|
- **Twitch OAuth Middleware `src/providers/twitch/twitchAuth.ts`:** Implements the core authentication flow, handling state management, redirects, and context variable setting (`token`, `refresh-token`, `user-twitch`, `granted-scopes`).
|
||||||
|
|
||||||
|
- **AuthFlow Class `src/providers/twitch/authFlow.ts`:** Encapsulates token exchange and user data retrieval, with robust error handling.
|
||||||
|
|
||||||
|
- **Token Operations `src/providers/twitch/refreshToken.ts`:** Provides functions for refreshing and revoking tokens.
|
||||||
|
|
||||||
|
- **Type Definitions `src/providers/twitch/types.ts:** Defines comprehensive types for Twitch API responses.
|
||||||
|
|
||||||
|
- **Extensive Testing (`test/handlers.ts`, `test/index.test.ts`):** Includes unit tests covering redirection, valid code flow, error handling, refresh/revoke token, custom and built-in state scenarios, using a mock server.
|
||||||
|
|
||||||
|
- **Validate Token `src/providers/twitch/validateToken`**: That hit `/validate` endpoint to verify that the access token is still valid for reasons other than token expiring.
|
||||||
|
|
||||||
## 0.6.2
|
## 0.6.2
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@hono/oauth-providers",
|
"name": "@hono/oauth-providers",
|
||||||
"version": "0.6.2",
|
"version": "0.7.0",
|
||||||
"description": "Social login for Hono JS, integrate authentication with facebook, github, google and linkedin to your projects.",
|
"description": "Social login for Hono JS, integrate authentication with facebook, github, google and linkedin to your projects.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
"default": "./dist/providers/discord/index.js"
|
"default": "./dist/providers/discord/index.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"./twitch" : {
|
"./twitch": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./dist/providers/twitch/index.d.mts",
|
"types": "./dist/providers/twitch/index.d.mts",
|
||||||
"default": "./dist/providers/twitch/index.mjs"
|
"default": "./dist/providers/twitch/index.mjs"
|
||||||
|
|
Loading…
Reference in New Issue