0👍
could you please introduce more details about your problem? (some code may be helpful).
and for this requirement:
I would like to have expire them on a certain period.
I think we usually implement expire an token
in back-end service
:
- step1:generatte one
token
,and save inredis
or other data service.(Redis has expiration settings for key) - step2:client send a request to server with this
token
,and the server verify the validity of thetoken
.
so it is nothing to do with Vue
Source:stackexchange.com