NodeJS

Feathers Auth requests can be verified in NodeJS with or without a framework.

HTTP

A NodeJS server using the node:http module without any framework can be implemented as follows.

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

Create an src/authenticate.ts file that validates an incoming request like this:

authenticate.ts

Then implement an HTTP handler with basic CORS CORS (necessary to allow requests from any client framework) in src/app.ts like this:

server.ts

The full NodeJS example server can be found here.

Express

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

For Express we can add our own authenticate middleware to authenticate incoming requests in src/authenticate.ts:

authenticate.ts

And then implement an Express application in src/app.ts like this:

app.ts

The full Express example server can be found here.

Subscribe to our NewsletterGet new Feathers content as it becomes available.
Feathers.dev

Copyright © 2012 - 2025 feathers.dev