// src/lib/normalize-auth-response.ts
var normalizeAuthUser = (user) => ({
  id: user.id,
  tenantId: user.tenantId,
  fullName: user.fullName,
  email: user.email,
  phone: user.phone,
  image: user.image,
  emailVerified: user.emailVerified,
  phoneVerified: user.phoneVerified,
  roles: user.roles ?? null,
  roleCodes: user.roleCodes ?? null,
  permissions: user.permissions ?? null
});
var normalizeAuthSession = (session) => session ? {
  id: session.id,
  expiresAt: session.expiresAt
} : null;
export {
  normalizeAuthSession,
  normalizeAuthUser
};
//# sourceMappingURL=normalize-auth-response.js.map