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