diff --git a/src/utils/checkAuthentication.ts b/src/utils/checkAuthentication.ts index 89c42cf2..87ed0466 100644 --- a/src/utils/checkAuthentication.ts +++ b/src/utils/checkAuthentication.ts @@ -10,14 +10,18 @@ export const getAuthToken = async (): Promise => (await chrome.storage.s export const optLogOut = () => { void removeAuthTokenFromStorage(); - void chrome.storage.local.set({ [OPEN_SAUCED_OPTED_LOG_OUT_KEY]: true }); + const optedLogout = { [OPEN_SAUCED_OPTED_LOG_OUT_KEY]: true }; + + void chrome.storage.local.set(optedLogout); }; export const optLogIn = async () => { if (typeof window === "undefined") { return; } - void chrome.storage.local.set({ [OPEN_SAUCED_OPTED_LOG_OUT_KEY]: false }); + const optedLogout = { [OPEN_SAUCED_OPTED_LOG_OUT_KEY]: false }; + + void chrome.storage.local.set(optedLogout); const verifier = generatePKCEVerifier(); const challenge = await generatePKCEChallenge(verifier);