Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 634 Bytes

File metadata and controls

21 lines (12 loc) · 634 Bytes

Bun

The Bun JavaScript runtime can run a web standard HTTP server with Cloud Auth like this.

npm create feathersdev@latest server --platform bun --app-id "<your-app-id>"

Verifier

An authenticateRequest function that validates an incoming web standard request can be implemented in src/authenticate.ts like this:

<<< @/examples/server/bun/src/authenticate.ts

Server

Then the BunJS server can then use it in a src/index.ts like this:

<<< @/examples/server/bun/src/index.ts

The full Bun example server can be found here.