()
| 109 | } |
| 110 | |
| 111 | export function readOAuthReturnContext(): OAuthReturnContext | null { |
| 112 | if (typeof window === 'undefined') return null |
| 113 | return parseJson<OAuthReturnContext>(window.sessionStorage.getItem(OAUTH_RETURN_CONTEXT_KEY)) |
| 114 | } |
| 115 | |
| 116 | export function consumeOAuthReturnContext(): OAuthReturnContext | null { |
| 117 | const ctx = readOAuthReturnContext() |
no test coverage detected