Files
Webklar.com/node_modules/@supabase/auth-js/dist/module/lib/local-storage.js
Basilosaurusrex f027651f9b main repo
2025-11-24 18:09:40 +01:00

18 lines
440 B
JavaScript

/**
* Returns a localStorage-like object that stores the key-value pairs in
* memory.
*/
export function memoryLocalStorageAdapter(store = {}) {
return {
getItem: (key) => {
return store[key] || null;
},
setItem: (key, value) => {
store[key] = value;
},
removeItem: (key) => {
delete store[key];
},
};
}
//# sourceMappingURL=local-storage.js.map