16 lines
385 B
TypeScript
Executable File
16 lines
385 B
TypeScript
Executable File
// utils.ts
|
|
import { createDefine, type PageProps as FreshPageProps } from "fresh";
|
|
import { SessionCookie } from "./routes/auth/callback.ts";
|
|
|
|
export interface State {
|
|
data: SessionCookie;
|
|
urlRoute: string;
|
|
host: string;
|
|
photoUrl: string;
|
|
stateId: string;
|
|
}
|
|
|
|
export type PageProps<Data = unknown> = FreshPageProps<Data, State>;
|
|
|
|
export const define = createDefine<State>();
|