Kaizen
Browse modulesAuthenticationauth/serverauth/server/nextInterfaces

Interface: AuthTrpcContextDeps<S *extends* `ContextSession` = `ContextSession`, A = [`TaprootAuth`](../../type-aliases/TaprootAuth.md)>

Defined in: server/auth/next/trpc.ts:32

Type Parameters

Type ParameterDefault type
S extends ContextSessionContextSession
ATaprootAuth

Properties

auth

auth: A & {
  api: {
     getSession: (input: {
        headers: Headers;
     }) => Promise<S | null>;
  };
};

Defined in: server/auth/next/trpc.ts:36

Type Declaration

api
api: {
  getSession: (input: {
     headers: Headers;
  }) => Promise<S | null>;
};
api.getSession
getSession: (input: {
  headers: Headers;
}) => Promise<S | null>;
Parameters
ParameterType
input{ headers: Headers; }
input.headersHeaders
Returns

Promise<S | null>


db

db: PrismaClient;

Defined in: server/auth/next/trpc.ts:39

On this page