Skip to content

Function: fetchSecureData()

fetchSecureData\<T>(endpoint): Promise\<T>

Defined in: lib/api.ts:227

Fetches data from secured endpoints requiring authentication.

Type Parameters

Type Parameter Description
T Expected JSON response type

Parameters

Parameter Type Description
endpoint string API endpoint path

Returns

Promise\<T>

Parsed JSON response