0๐
โ
You have to remove the ,
before export
and assign the data to your localStorage item as follows :
localStorage['tokenExpiration']= new Date().getTime() + result.expiresIn * 1000
0๐
I removed ,
before export
and it works! Thank you, Boussadjra Brahim ๐
This is what my code looks like now:
// some.js
const title = [
{...},
{...},
{...},
]
export { title };
Source:stackexchange.com