vibrox-auth
is the authentication microservice of the Vibrox suite.
It provides secure JWT generation and validation via gRPC, acting as the identity gatekeeper for other services.
- gRPC API for:
- Signing new JWTs
- Validating existing tokens
- Secret-based signing strategy (HS256 or configurable)
- Lightweight and stateless — ideal for microservice auth
The gRPC service is defined using Protocol Buffers (token.proto
).
To compile the .proto
file for Node.js:
npx grpc_tools_node_protoc \
--js_out=import_style=commonjs,binary:./proto \
--grpc_out=grpc_js:./proto \
-I ./proto ./proto/token.proto
This generates the necessary JS and gRPC client/server code inside the
./proto
directory.
Make sure:
- You’ve installed the necessary dependencies (see below)
- Your
.proto
file is placed in./proto/
protoc
(Protocol Buffers compiler)grpc-tools
and@grpc/grpc-js
npm install
npm run dev
OR
node index.js