Skip to content
File

Blob: src/contracts/auth.ts

typescript14 lines
1import { eg, type TypeFromCodec } from "@cloudflare/util-en-garde";
2 
3import { UserSummary } from "@/contracts/common";
4 
5export const GetMeResponse = eg.exactStrict(
6 eg.object({
7 user: UserSummary,
8 }),
9);
10export type GetMeResponse = TypeFromCodec<typeof GetMeResponse>;
11 
12export const PublicAppConfigResponse = eg.exactStrict(eg.object({}));
13export type PublicAppConfigResponse = TypeFromCodec<typeof PublicAppConfigResponse>;