MCPcopy Index your code
hub / github.com/Packstack-Tech/packstack / AppProviderState

Interface AppProviderState

frontend/src/AppContext.tsx:7–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import { Category } from "types/category";
6
7export interface AppProviderState {
8 api: Api;
9 jwt: {
10 decoded: DecodedToken | null;
11 auth_token: string;
12 },
13 userInfo: User | null;
14 categories: Category[];
15 setAuthToken: (authToken: string) => Promise<void>;
16 fetchUser: () => void;
17 logout: () => void;
18}
19
20interface AppProviderProps {
21 token?: TokenInterface;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected