get or store the data as cookie which have expire date
``
`
install localstorage-with-expire
`
`
import { get, set } from 'localstorage-with-expire'
`
``
set('your-record-name', {}, {
day: 1,
minute: 1
})
get('your-record-name')
set:
set locatstorage data with expire date
get:
-get the data from localstorage
-remove the data and return null when expire date is out