Interface: AuthTrpcContextDeps<S *extends* `ContextSession` = `ContextSession`, A = [`TaprootAuth`](../../type-aliases/TaprootAuth.md)>
Defined in: server/auth/next/trpc.ts:32
Type Parameters
| Type Parameter | Default type |
|---|---|
S extends ContextSession | ContextSession |
A | TaprootAuth |
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
| Parameter | Type |
|---|---|
input | { headers: Headers; } |
input.headers | Headers |
Returns
Promise<S | null>
db
db: PrismaClient;Defined in: server/auth/next/trpc.ts:39