getRedirectUrlList()
Retrieves a list of all white-listed redirect URLs.
function getRedirectUrlList(): () => Promise<PaginatedResourceResponse<RedirectUrl[]>>
Example
In this example, you can see that the returned PaginatedResourceResponse
includes data
, which is an array of RedirectUrl
objects, and totalCount
, which indicates the total number of redirect URLs for the application.
const response = await clerkClient.redirectUrls.getRedirectUrlList()
console.log(response)
/*
{
data: [
_RedirectUrl {
id: 'ru_123',
url: 'https://example.com',
createdAt: 1707151695693,
updatedAt: 1707151695693
}
],
totalCount: 1
}
*/
Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint GET/redirect_urls/{id}
. See the BAPI reference for more information.
Feedback
Last updated on