/**
 * @aurora-catalyst-generated
 * @source cliter/iam/account.aurora.yaml
 */
import { IamAccount } from '@api/graphql';
import { Injectable } from '@nestjs/common';

@Injectable()
export class IamMeAccountHandler {
  /**
   * Returns the authenticated account as resolved from the request context by the active
   * authentication strategy. The transport supplies `currentAccount` (the `AuthenticatedAccount`
   * the JWT guard placed on the request); this handler surfaces it unchanged — NO database read,
   * so it behaves identically under any `OAUTH_STRATEGY` (local-provider or aurora-hub). See
   * OpenSpec change `add-iam-me-account` (D1).
   */
  async main(currentAccount: IamAccount): Promise<IamAccount> {
    return currentAccount;
  }
}
