Skip to main content
Docs

update()

Updates an by its ID.

function update(
  params: UpdateOAuthApplicationParams,
): Promise<OAuthApplication>
  • Name
    oauthApplicationId (required)
    Type
    string
    Description

    The ID of the OAuth application to update.

  • Name
    name
    Type
    string | null
    Description

    The new name of the OAuth application.

  • Name
    redirectUris?
    Type
    string[] | null
    Description

    An array of redirect URIs of the new OAuth application.

  • Name
    scopes?
    Type
    string | null
    Description

    Scopes for the new OAuth application. Available scopes are profile, email, public_metadata, private_metadata. Defaults to profile email. Provide the requested scopes as a string, separated by spaces.

  • Name
    consentScreenEnabled?
    Type
    boolean | null
    Description

    Specifies whether the consent screen should be displayed in the authentication flow. Cannot be disabled for dynamically registered OAuth applications. Defaults to true.

  • Name
    pkceRequired?
    Type
    boolean | null
    Description

    Specifies whether the Proof Key of Code Exchange (PKCE) flow should be required in the authentication flow. Defaults to false.

  • Name
    public?
    Type
    boolean | null
    Description

    Indicates whether the client is public. If true, the Proof Key of Code Exchange (PKCE) flow can be used.

Note

Importing clerkClient varies based on your framework. Refer to the for usage details, including guidance on .

const oauthApplicationId = 'oauthapp_123'

const response = await clerkClient.oauthApplications.update(oauthApplicationId, {
  name: 'Updated OAuth Application',
})

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

What did you think of this content?

Last updated on