diff --git a/packages/backend-core/src/index.ts b/packages/backend-core/src/index.ts index c899173891..c604dd6068 100644 --- a/packages/backend-core/src/index.ts +++ b/packages/backend-core/src/index.ts @@ -14,6 +14,7 @@ import auth from "./auth" import constants from "./constants" import * as dbConstants from "./db/constants" import * as logging from "./logging" +import * as middleware from "./middleware" // mimic the outer package exports import * as db from "./pkg/db" @@ -52,6 +53,7 @@ const core = { errors, logging, ...errorClasses, + middleware, } export = core diff --git a/packages/types/src/documents/account/account.ts b/packages/types/src/documents/account/account.ts index 344b699137..e6f48ff001 100644 --- a/packages/types/src/documents/account/account.ts +++ b/packages/types/src/documents/account/account.ts @@ -22,11 +22,6 @@ export const isCreatePasswordAccount = ( account: CreateAccount ): account is CreatePassswordAccount => account.authType === AuthType.PASSWORD -export interface UpdateAccount { - stripeCustomerId?: string - licenseKey?: string -} - export interface Account extends CreateAccount { // generated accountId: string