(session: ConflictSession)
| 129 | } |
| 130 | |
| 131 | export function getDualAuthConflictSources(session: ConflictSession): null | { |
| 132 | apiKeySource: string; |
| 133 | authTokenSource: string; |
| 134 | } { |
| 135 | const authTokenSource = session.rawAuthTokenSource; |
| 136 | const apiKeySource = session.rawApiKeySource; |
| 137 | |
| 138 | if (!authTokenSource || !apiKeySource) { |
| 139 | return null; |
| 140 | } |
| 141 | |
| 142 | if (authTokenSource === 'apiKeyHelper' && apiKeySource === 'apiKeyHelper') { |
| 143 | return null; |
| 144 | } |
| 145 | |
| 146 | return { |
| 147 | authTokenSource, |
| 148 | apiKeySource, |
| 149 | }; |
| 150 | } |
| 151 | |
| 152 | // Individual notice definitions |
| 153 | const largeMemoryFilesNotice: StatusNoticeDefinition = { |
no outgoing calls
no test coverage detected