13 lines
		
	
	
		
			287 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			287 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { apiRoot } from "./constants";
 | |
| export default async function (id: number): Promise<number> {
 | |
| 	let { data: lookup } = await useFetch<any>(`${apiRoot}/session-sharing/lookup`, {
 | |
| 		method: "get",
 | |
| 		query: {
 | |
| 			params: {
 | |
| 				id,
 | |
| 			},
 | |
| 		},
 | |
| 	});
 | |
| 	return lookup.value.uid as number;
 | |
| }
 |