Skip to content

Releases: honojs/middleware

@hono/oauth-providers@0.7.0

12 Mar 09:02
e394e64
Compare
Choose a tag to compare

Minor Changes

  • #981 e5f383787c2bd47657f67a99074515eab969963b Thanks @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.

@hono/otel@0.1.0

11 Mar 08:20
44efa2a
Compare
Choose a tag to compare

Minor Changes

@hono/cloudflare-access@0.3.0

05 Mar 00:54
7007f19
Compare
Choose a tag to compare

Minor Changes

@hono/zod-openapi@0.19.2

02 Mar 21:11
0f8d2f3
Compare
Choose a tag to compare

Patch Changes

@hono/zod-openapi@0.19.1

02 Mar 08:54
10d65d1
Compare
Choose a tag to compare

Patch Changes

@hono/swagger-ui@0.5.1

02 Mar 07:16
50936f9
Compare
Choose a tag to compare

Patch Changes

@hono/zod-openapi@0.19.0

28 Feb 08:59
e0880ca
Compare
Choose a tag to compare

Minor Changes

@hono/node-ws@1.1.0

23 Feb 06:38
fa8ed28
Compare
Choose a tag to compare

Minor Changes

@hono/react-renderer@0.3.0

17 Feb 05:33
57b9f5d
Compare
Choose a tag to compare

Minor Changes

@hono/zod-validator@0.4.3

15 Feb 01:47
a2fdda7
Compare
Choose a tag to compare

Patch Changes