File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ import Options = FastifySessionPlugin.Options;
3434 * password: 'password',
3535 * }
3636 *
37- * AdminBroExpress .buildAuthenticatedRouter(adminBro , {
37+ * AdminJSFastify .buildAuthenticatedRouter(adminJs , {
3838 * authenticate: async (email, password) => {
3939 * if (ADMIN.password === password && ADMIN.email === email) {
4040 * return ADMIN
4141 * }
4242 * return null
4343 * },
44- * cookieName: 'adminbro ',
44+ * cookieName: 'adminjs ',
4545 * cookiePassword: 'somePassword',
4646 * }, [router])
4747 */
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export const buildRouter = (
2929 admin : AdminJS ,
3030 fastifyApp : FastifyInstance
3131) : void => {
32- if ( admin ?. constructor ?. name !== 'AdminBro ' ) {
32+ if ( admin ?. constructor ?. name !== 'AdminJS ' ) {
3333 throw new WrongArgumentError ( INVALID_ADMIN_BRO_INSTANCE ) ;
3434 }
3535 fastifyApp . register ( fastifyMultipart , { attachFieldsToBody : true } ) ;
You can’t perform that action at this time.
0 commit comments