mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-04 15:04:43 +00:00
19 lines
500 B
TypeScript
19 lines
500 B
TypeScript
import OIDCService from '$lib/services/oidc-service';
|
|
import type { SearchPaginationSortRequest } from '$lib/types/pagination.type';
|
|
import type { PageLoad } from './$types';
|
|
|
|
export const load: PageLoad = async () => {
|
|
const oidcService = new OIDCService();
|
|
|
|
const clientsRequestOptions: SearchPaginationSortRequest = {
|
|
sort: {
|
|
column: 'name',
|
|
direction: 'asc'
|
|
}
|
|
};
|
|
|
|
const clients = await oidcService.listClients(clientsRequestOptions);
|
|
|
|
return { clients, clientsRequestOptions };
|
|
};
|