supertokens-node
    Preparing search index...

    Variable createOrUpdateTenant

    createOrUpdateTenant: (
        tenantId: string,
        config?: {
            coreConfig?: { [key: string]: any };
            firstFactors?: null | string[];
            requiredSecondaryFactors?: null | string[];
        },
        userContext?: Record<string, any>,
    ) => Promise<{ createdNew: boolean; status: "OK" }> = Wrapper.createOrUpdateTenant

    Type declaration

      • (
            tenantId: string,
            config?: {
                coreConfig?: { [key: string]: any };
                firstFactors?: null | string[];
                requiredSecondaryFactors?: null | string[];
            },
            userContext?: Record<string, any>,
        ): Promise<{ createdNew: boolean; status: "OK" }>
      • Parameters

        • tenantId: string
        • Optionalconfig: {
              coreConfig?: { [key: string]: any };
              firstFactors?: null | string[];
              requiredSecondaryFactors?: null | string[];
          }
        • OptionaluserContext: Record<string, any>

        Returns Promise<{ createdNew: boolean; status: "OK" }>