Generate .ics file in client.
npm install ics-file-export
import { ics } from 'ics-file-export';
const cal = ics();
cal.addEvent(
'Event Title',
'Event description',
'Event location',
'13/1/2021 5:30 pm',
'13/1/2021 6:00 pm')
);
// initiates download in client
cal.download()