import { noop } from "../../util"; import { cognitoFetch } from "../cognito-fetch"; type TGlobalSignOutParams = { region: string; accessToken: string; debug?: (trace: any) => void; }; export const globalSignOut = async ({ region, accessToken, debug = noop, }: TGlobalSignOutParams) => await cognitoFetch({ region, operation: "GlobalSignOut", args: { AccessToken: accessToken }, debug, });