For my OktaAuth instance I am setting the following option for storageManager.token.storageProvider in OktaAuthOptions. The okta-token-storage key is being created in localStorage but I don’t know how. I see the console log message for the getItem but not setItem. Any idea why the setItem function is not being called?
export const browserStorageProvider = {
getItem: (key: string) => {console.log(`getItem: ${key}`); return localStorage.getItem(key)},
setItem: (key: string, val: any) => {
console.log(`setItem: ${key} to ${val}`);
localStorage.setItem(key, val);
},
removeItem: (key: string) => localStorage.removeItem(key)
};