{"ScriptPreparationCode":"function getTokenA(){\r\n return (\r\n sessionStorage.getItem(\u0022token\u0022) || // session storage is used for single session logins (agency users)\r\n localStorage.getItem(\u0022token\u0022) // local storage is used for persistent logins (normal users)\r\n );\r\n};\r\n\r\nfunction getTokenB() {\r\n return (\r\n new URLSearchParams(window.location.search).get(\u0022token\u0022) || // query param is used to quickly override the token\r\n sessionStorage.getItem(\u0022token\u0022) || // session storage is used for single session logins (agency users)\r\n localStorage.getItem(\u0022token\u0022) // local storage is used for persistent logins (normal users)\r\n );\r\n};\r\n\r\nlocalStorage.setItem(\u0022token\u0022, \u0022something\u0022)\r\n","TestCases":[{"Name":"without URLSearchParams","Code":"getTokenA()","IsDeferred":false},{"Name":"with URLSearchParams","Code":"getTokenB()","IsDeferred":false}]}