Kaizen

Type Alias: ServerHelpersDeps<S *extends* `SessionShape` = `SessionShape`, O *extends* `OrganizationShape` = `OrganizationShape`>

type ServerHelpersDeps<S extends SessionShape = SessionShape, O extends OrganizationShape = OrganizationShape> = SessionHelpersDeps<S> & {
  auth: {
     api: {
        createOrganization?: object;
     };
  };
  db: OrganizationStore<O>;
};

Defined in: server/auth/next/server-helpers.ts:35

Type Declaration

auth

auth: {
  api: {
     createOrganization?: object;
  };
};

Accept historical inline auth literals without requiring a write endpoint.

auth.api

api: {
  createOrganization?: object;
};

auth.api.createOrganization?

optional createOrganization?: object;

db

db: OrganizationStore<O>;

Type Parameters

Type ParameterDefault type
S extends SessionShapeSessionShape
O extends OrganizationShapeOrganizationShape

On this page