( serverUrl: string, scope: string | undefined, )
| 113 | }; |
| 114 | |
| 115 | export const saveScopeToSessionStorage = ( |
| 116 | serverUrl: string, |
| 117 | scope: string | undefined, |
| 118 | ) => { |
| 119 | const key = getServerSpecificKey(SESSION_KEYS.SCOPE, serverUrl); |
| 120 | if (scope) { |
| 121 | sessionStorage.setItem(key, scope); |
| 122 | } else { |
| 123 | sessionStorage.removeItem(key); |
| 124 | } |
| 125 | }; |
| 126 | |
| 127 | export const clearScopeFromSessionStorage = (serverUrl: string) => { |
| 128 | const key = getServerSpecificKey(SESSION_KEYS.SCOPE, serverUrl); |
no test coverage detected