@@ -172,7 +172,7 @@ export const registerAdminUserRoutes = async (fastify: FastifyInstance): Promise
172172 if ( ! user ) {
173173 return reply . code ( 401 ) . send ( {
174174 success : false ,
175- error : { code : 'UNAUTHORIZED' , message : 'Authentication required' } ,
175+ error : { code : 'UNAUTHORIZED' , message : 'Authentication required' , details : { } } ,
176176 } ) ;
177177 }
178178
@@ -235,7 +235,7 @@ export const registerAdminUserRoutes = async (fastify: FastifyInstance): Promise
235235 if ( ! user ) {
236236 return reply . code ( 401 ) . send ( {
237237 success : false ,
238- error : { code : 'UNAUTHORIZED' , message : 'Authentication required' } ,
238+ error : { code : 'UNAUTHORIZED' , message : 'Authentication required' , details : { } } ,
239239 } ) ;
240240 }
241241
@@ -297,7 +297,7 @@ export const registerAdminUserRoutes = async (fastify: FastifyInstance): Promise
297297 if ( ! user ) {
298298 return reply . code ( 401 ) . send ( {
299299 success : false ,
300- error : { code : 'UNAUTHORIZED' , message : 'Authentication required' } ,
300+ error : { code : 'UNAUTHORIZED' , message : 'Authentication required' , details : { } } ,
301301 } ) ;
302302 }
303303
@@ -368,7 +368,7 @@ export const registerAdminUserRoutes = async (fastify: FastifyInstance): Promise
368368 if ( ! user ) {
369369 return reply . code ( 401 ) . send ( {
370370 success : false ,
371- error : { code : 'UNAUTHORIZED' , message : 'Authentication required' } ,
371+ error : { code : 'UNAUTHORIZED' , message : 'Authentication required' , details : { } } ,
372372 } ) ;
373373 }
374374
@@ -421,7 +421,7 @@ export const registerAdminUserRoutes = async (fastify: FastifyInstance): Promise
421421 if ( ! user ) {
422422 return reply . code ( 401 ) . send ( {
423423 success : false ,
424- error : { code : 'UNAUTHORIZED' , message : 'Authentication required' } ,
424+ error : { code : 'UNAUTHORIZED' , message : 'Authentication required' , details : { } } ,
425425 } ) ;
426426 }
427427
0 commit comments