1.0.2 • Published 5 years ago
sbx-helper-storage v1.0.2
SBX Request
sbx i --save sbx-helper-storage
Set is sets to document.cookie and window.localStorage
Get from document.cookie by priority then from window.localStorage
Del is set empty value to document.cookie and window.localStorage
import Storage from 'sbx-helper-storage';
Storage.set('auth', 'token');
Storage.get('auth');
Storage.del('auth');