Hono wrapper for implementing OAuth2 based web app.
- Preconfigured authentication with social signups.
This package provides following middlewares.
Define login related paths:
-
GET /auth/login/:provider
. -
GET /auth/login/:provider/callback
. -
GET /auth/info
.
Recognize user session using either cookie or authorization headers. It supports:
-
Authorization: Bearer <token>
. - Cookie for session management.
Serve any static frontend application (typically SPA application).
Use the following command to run all the tests:
npm run test -- test/**/*.spec.ts