hunk.code_window:                     } else if (expiresInResponse != null) {
                           expiresAt = issuedAt.plusSeconds(Long.valueOf((Integer) expiresInResponse));
                       }
                       authenticationResponse.setExpiresAt(expiresAt);
                       authenticationResponse.setIssuedAt(issuedAt);
                       if (mappedResponse.containsKey(Authentication.REFRESH_TOKEN)) {
                           authenticationResponse.setRefreshToken(String.valueOf(mappedResponse.get(Authentication.REFRESH_TOKEN)));
  
hunk.labels: keep replace keep keep keep keep keep
hunk.after_edit:                         expiresAt = issuedAt.plusSeconds(Long.parseLong(String.valueOf(expiresInResponse)));
  
hunk.file_path: app/server/appsmith-plugins/restApiPlugin/src/main/java/com/external/connections/OAuth2AuthorizationCode.java
hunk.type: replace
file: import React from "react";
  import styled from "styled-components";
  
  import BaseWidget, { WidgetProps, WidgetState } from "widgets/BaseWidget";
  import { DerivedPropertiesMap } from "utils/WidgetFactory";
  
  import {{name}}Component from "../component";
  
  class {{suffixed name}} extends BaseWidget<{{suffixed name}}Props, WidgetState> {
    static getPropertyPaneConfig() {
      return [];
    }
  
    static getDerivedPropertiesMap(): DerivedPropertiesMap {
      return {};
    }
  
    static getDefaultPropertiesMap(): Record<string, string> {
      return {};
    }
  
    static getMetaPropertiesMap(): Record<string, any> {
      return {};
    }
  
    getPageView() {
      return <{{name}}Component />;
    }
  
    static getWidgetType(): string {
      return "{{widgetTypeFormat name}}";
    }
  }
  
  export interface {{suffixed name}}Props extends WidgetProps {}
  
  export default {{suffixed name}};
  