12 lines
245 B
TypeScript
12 lines
245 B
TypeScript
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;
|
|
}
|