hunk.code_window:         environmentId: command.environmentId,
         })
       );
       return novuIntegrations.length > 0 ? novuIntegrations : integrations;
     }
   }
hunk.labels: keep keep keep keep replace keep keep
hunk.after_edit:     return novuIntegration ? [novuIntegration] : integrations;
  
hunk.file_path: apps/api/src/app/integrations/usecases/get-decrypted-integrations/get-decrypted-integrations.usecase.ts
hunk.type: replace
file: import React from 'react';
  import { IOrganizationEntity, IUserEntity, IJwtPayload } from '@novu/shared';
  
  export type UserContext = {
    token: string | null;
    currentUser: IUserEntity | undefined;
    currentOrganization: IOrganizationEntity | undefined;
    organizations: IOrganizationEntity[] | undefined;
    setToken: (token: string) => void;
    logout: () => void;
    jwtPayload?: IJwtPayload;
  };
  
  export const AuthContext = React.createContext<UserContext>({
    token: null,
    currentUser: undefined,
    setToken: undefined as any,
    logout: undefined as any,
    currentOrganization: undefined as any,
    organizations: undefined as any,
    jwtPayload: undefined,
  });
  