(ctx: OAuthReturnContext)
| 104 | | OAuthReturnKBConnectors |
| 105 | |
| 106 | export function writeOAuthReturnContext(ctx: OAuthReturnContext) { |
| 107 | if (typeof window === 'undefined') return |
| 108 | window.sessionStorage.setItem(OAUTH_RETURN_CONTEXT_KEY, JSON.stringify(ctx)) |
| 109 | } |
| 110 | |
| 111 | export function readOAuthReturnContext(): OAuthReturnContext | null { |
| 112 | if (typeof window === 'undefined') return null |
no test coverage detected