NewWacht Bench is live — AI-assisted development for Wacht

verifyOAuthAppDomain()

Calls the OAuth domain verification route and returns verification status/details.

Usage

The following example shows a basic usage of the backend client from @wacht/nextjs/server.

import { wachtClient } from '@wacht/nextjs/server';export async function verifyDomain(oauthAppSlug: string) {  const client = await wachtClient();  return client.oauth.verifyOAuthAppDomain(oauthAppSlug);}

Signature

function verifyOAuthAppDomain(  oauthAppSlug: string,): Promise<OAuthDomainVerificationResponse>

Parameters

oauthAppSlug?: string | undefined;
OAuth app slug.

Return value

verified?: boolean | undefined;
Whether domain verification passed.
domain?: string | undefined;
Verified domain value.
message?: string | undefined;
Verification status message.

On this page