fix: resolve server TS errors — jwt type augmentation, sign options, services import
bump version to 0.3.1
This commit is contained in:
@@ -10,11 +10,12 @@ export interface JwtPayload {
|
||||
exp?: number
|
||||
}
|
||||
|
||||
// ─── Fastify type augmentation ────────────────────────────────────────────────
|
||||
// ─── @fastify/jwt type augmentation ───────────────────────────────────────────
|
||||
|
||||
declare module 'fastify' {
|
||||
interface FastifyRequest {
|
||||
user?: JwtPayload
|
||||
declare module '@fastify/jwt' {
|
||||
interface FastifyJWT {
|
||||
payload: JwtPayload
|
||||
user: JwtPayload
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user