update()
Updates the given OAuth application.
Returns the updated OAuthApplication object.
function update(params: UpdateOAuthApplicationParams): Promise<OAuthApplication>- Name
oauthApplicationId- Type
string- Description
The ID of the OAuth application to update.
const oauthApplicationId = 'oauthapp_123'
const response = await clerkClient.oauthApplications.update({
oauthApplicationId: oauthApplicationId,
name: 'test',
redirectUris: [''],
scopes: 'profile email public_metadata private_metadata',
public: true,
})Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint PATCH/oauth_applications/{oauth_application_id}. See the BAPI reference for more information.
Feedback
Last updated on