@mcp-z/oauth-google
    Preparing search index...

    Function verifyBearerToken

    • Verify bearer token against DCR authorization server

      Supports both self-hosted and external DCR modes by calling the /oauth/verify endpoint (or equivalent external URL).

      Parameters

      • bearerToken: string

        Bearer token to verify (without "Bearer " prefix)

      • verifyUrl: string

        Verification endpoint URL (self-hosted or external)

      Returns Promise<VerificationResult>

      Verification result with provider tokens

      Error if verification fails

      const result = await verifyBearerToken(
      token,
      'http://localhost:3456/oauth/verify'
      );
      const auth = provider.toAuthProvider(result.providerTokens);
      const result = await verifyBearerToken(
      token,
      'https://auth.example.com/oauth/verify'
      );
      const auth = provider.toAuthProvider(result.providerTokens);