UNPKG

@authlocal/authlocal

Version:

User-sovereign Logins For All

8 lines 274 B
export function migrateStorageKeyRename(storage, oldKey, newKey) { const oldValue = storage.getItem(oldKey); if (oldValue) { storage.removeItem(oldKey); storage.setItem(newKey, oldValue); } } //# sourceMappingURL=migrate-storage-key-rename.js.map