Skip to content

Commit 7853312

Browse files
committed
fix: remove references to old AdminBro name
1 parent e655ad4 commit 7853312

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/buildAuthenticatedRouter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*/

src/buildRouter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 });

0 commit comments

Comments
 (0)