hunk.code_window:                                 } else if (expiresInResponse != null) {
                                       expiresAt = issuedAt.plusSeconds(Long.parseLong((String) expiresInResponse));
                                   }
                                   authenticationResponse.setExpiresAt(expiresAt);
                                   // Replacing with returned scope instead
  
hunk.labels: keep replace keep keep keep
hunk.after_edit:                                     expiresAt = issuedAt.plusSeconds(Long.parseLong(String.valueOf(expiresInResponse)));
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java
hunk.type: replace
file: import {
    default as ThirdPartyAuth,
    SocialLoginTypes as CE_SocialLoginTypes,
  } from "ce/pages/UserAuth/ThirdPartyAuth";
  import { getAppsmithConfigs } from "@appsmith/configs";
  import { ThirdPartyLoginRegistry } from "pages/UserAuth/ThirdPartyLoginRegistry";
  const { enableGithubOAuth, enableGoogleOAuth } = getAppsmithConfigs();
  
  export const SocialLoginTypes = CE_SocialLoginTypes;
  
  if (enableGoogleOAuth)
    ThirdPartyLoginRegistry.register(SocialLoginTypes.GOOGLE);
  if (enableGithubOAuth)
    ThirdPartyLoginRegistry.register(SocialLoginTypes.GITHUB);
  
  export default ThirdPartyAuth;
  