| 5 | import { Category } from "types/category"; |
| 6 | |
| 7 | export 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 | |
| 20 | interface AppProviderProps { |
| 21 | token?: TokenInterface; |
nothing calls this directly
no outgoing calls
no test coverage detected