https://github.com/drivly/hono-oauth-middleware
Hono middleware for OAuth from GitHub, Google, and more
https://github.com/drivly/hono-oauth-middleware
Last synced: 3 months ago
JSON representation
Hono middleware for OAuth from GitHub, Google, and more
- Host: GitHub
- URL: https://github.com/drivly/hono-oauth-middleware
- Owner: drivly
- Created: 2022-07-27T10:16:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-04T14:59:18.000Z (over 2 years ago)
- Last Synced: 2025-02-16T15:16:57.189Z (4 months ago)
- Language: TypeScript
- Size: 108 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello middleware for Hono
An example project of the third-party middleware for [Hono](https://github.com/honojs/hono).
This middleware add `X-Message` header to the Response.## Usage
```ts
import { hello } from '@honojs/hello'
import { Hono } from 'hono'const app = new Hono()
app.use('*', hello('Hello!! Hono!!'))
app.get('/', (c) => c.text('foo'))export default app
```## Deno
```ts
import { serve } from 'https://deno.land/std/http/server.ts'
import { hello } from 'https://deno.land/x/hono_hello/mod.ts'
import { Hono } from 'https://deno.land/x/hono/mod.ts'const app = new Hono()
app.use('*', hello('Hello!! Hono!!'))
app.get('/', (c) => c.text('foo'))serve(app.fetch)
```## Author
Yusuke Wada
## License
MIT