import { noop } from "../../util"; import { cognitoFetch } from "../cognito-fetch"; type TVerifyUserAttributeParams = { region: string; accessToken: string; attributeName: string; code: string; debug?: (trace: any) => void; }; export const verifyUserAttribute = async ({ region, accessToken, attributeName, code, debug = noop, }: TVerifyUserAttributeParams) => await cognitoFetch({ region, operation: "VerifyUserAttribute", args: { AccessToken: accessToken, AttributeName: attributeName, Code: code, }, debug, });