list()
Gets a list of OAuth applications for the instance. By default, the list is returned in descending order by creation date (newest first).
Returns a PaginatedResourceResponse object with a data property containing an array of OAuthApplication objects and a totalCount property containing the total number of OAuth applications.
function list(params: GetOAuthApplicationListParams): Promise<PaginatedResourceResponse<OAuthApplication[]>>- Name
orderBy?- Type
WithSign<"name" | "created_at">- Description
Returns OAuth applications in a particular order. Prefix a value with
+to sort in ascending order, or-to sort in descending order. Defaults to-created_at.
const response = await clerkClient.oauthApplications.list()Limit the number of results
Gets a list of OAuth applications, limited to the specified number of results
const { data, totalCount } = await clerkClient.oauthApplications.list({
// returns the first 10 results
limit: 10,
})Skip results
Gets a list of OAuth applications, skipping the specified number of results
const { data, totalCount } = await clerkClient.oauthApplications.list({
// skips the first 10 results
offset: 10,
})Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint GET/oauth_applications. See the BAPI reference for more information.
Feedback
Last updated on