@jackdbd/fastify-userinfo-endpoint

Fastify plugin that adds a IndieAuth Userinfo Endpoint to a Fastify server.
Installation
npm install @jackdbd/fastify-userinfo-endpoint
Userinfo Endpoint Options
Options for the Fastify userinfo-endpoint plugin
Properties
Name | Type | Description | Required |
---|
ajv | | Instance of Ajv
| no |
includeErrorDescription | boolean | Whether to include an error_description property in all error responses. This is meant to assist the client developer in understanding the error. This is NOT meant to be shown to the end user. Default: false
| no |
isAccessTokenRevoked | Function | Predicate function that returns true if a jti (JSON Web Token ID) is revoked.
| yes |
logPrefix | string | Default: "userinfo-endpoint "
| no |
reportAllAjvErrors (report all AJV errors) | boolean | Whether to report all AJV validation errors. Default: false
| no |
retrieveUserProfile | Function | Function that retrieves a user's profile from a storage backend.
| yes |
Example
{
"includeErrorDescription": false,
"logPrefix": "userinfo-endpoint ",
"reportAllAjvErrors": false
}
Dependencies
⚠️ Peer Dependencies
This package defines 1 peer dependency.
Peer | Version range |
---|
fastify | >=5.0.0 |
References
License
© 2024 - 2025 Giacomo Debidda // MIT License