I have an Angular 15 application that uses the redirect auth flow. I setup a custom storage provider and while “cache-storage” and “token-storage” are showing up in sessionStorage correctly, “okta-shared-transaction-storage” and “okta-original-uri-storage” remains in localStorage. The docs do not reference either of these storage items at all–is there a way to move them off localStorage? Thank you.
const customSessionStorageProvider = {
getItem: function (key) {
return sessionStorage.getItem(key);
},
setItem: function (key, val) {
sessionStorage.setItem(key, val);
},
removeItem: function (key) {
sessionStorage.removeItem(key);
}
}
const oktaAuth = new OktaAuth({
issuer: 'https://${yourOktaDomain}/oauth2/default',
clientId: '${yourClientID}',
redirectUri: window.location.origin + '/login/callback',
storageManager: {
token: {
storageProvider: customSessionStorageProvider
},
transaction: {
storageProvider: customSessionStorageProvider
},
cache: {
storageProvider: customSessionStorageProvider
},
}
});
var authClient = new OktaAuth(config);
Package versions if applicable:
“@angular/common”: “^15.2.9”,
“@angular/core”: “^15.2.9”,
“@okta/okta-angular”: “^6.2.0”,
“@okta/okta-auth-js”: “^7.3.1”,