pronounscc/frontend/src/routes/settings/tokens/+page.ts

13 lines
245 B
TypeScript
Raw Normal View History

import { apiFetchClient } from "$lib/api/fetch";
export const load = async () => {
const tokens = await apiFetchClient<Token[]>("/auth/tokens");
return { tokens };
};
interface Token {
id: string;
created: string;
expires: string;
}