alfhen / vue-cookie

A Vue.js plugin for manipulating cookies
MIT License
822 stars 74 forks source link

Set cookie expiration time as unix timestamp #33

Closed e200 closed 5 years ago

e200 commented 6 years ago

I'm using this library to store OAuth tokens and I want to set the expiration time of my access_token as the expires_in response, but it is in timestamp.

Could you provide a way of pass the timestamp and get the cookie saved with it as expiration time?