0.10.0 • Published 12 days ago

@webf/base v0.10.0

Weekly downloads
-
License
SEE LICENSE IN .....
Repository
github
Last release
12 days ago

API Base

Hono wrapper for implementing OAuth2 based web app.

Features

  • Preconfigured authentication with social signups.

Design

This package provides following middlewares.

Authentication middleware

Define login related paths:

  • GET /auth/login/:provider.
  • GET /auth/login/:provider/callback.
  • GET /auth/info.

Session middleware

Recognize user session using either cookie or authorization headers. It supports:

  • Authorization: Bearer <token>.
  • Cookie for session management.

Static middleware

Serve any static frontend application (typically SPA application).

Local development

Use the following command to run all the tests:

npm run test -- test/**/*.spec.ts
0.10.0

12 days ago

0.9.0

26 days ago

0.8.0

1 month ago

0.7.0

3 months ago

0.6.1

3 months ago

0.6.0

3 months ago

0.5.0

3 months ago

0.4.0

4 months ago

0.2.0

4 months ago

0.1.0

5 months ago