import "./chunk-LZOMFHX3.mjs";

// src/components/cognito/post-authentication.handler.ts
import {
  AdminUserGlobalSignOutCommand,
  CognitoIdentityProviderClient
} from "@aws-sdk/client-cognito-identity-provider";
var client = new CognitoIdentityProviderClient({});
var handler = async (event, _context) => {
  try {
    await client.send(
      new AdminUserGlobalSignOutCommand({
        UserPoolId: event.userPoolId,
        Username: event.userName
      })
    );
  } catch (err) {
    console.warn("AdminUserGlobalSignOut failed; continuing sign-in", err);
  }
  return event;
};
export {
  handler
};
//# sourceMappingURL=post-authentication.handler.mjs.map