Request Helpers
Request
request.account
request.account = {
id: string,
role: string,
verified: boolean,
};request.org
request.org = {
id: string,
}await request.can(action: string, subject: any, fields: string[])
await request.cannot(action: string, subject: any, fields: string[])
await request.verified()
await request.subscribed()
request.ua()
Reply
reply.error(error: FastifyError)
await reply.uncache(key: string, options?: CacheOptions)
Changelog
Last updated