MCPcopy Create free account
hub / github.com/Noumena-Network/code / getDualAuthConflictSources

Function getDualAuthConflictSources

src/utils/statusNoticeDefinitions.tsx:131–150  ·  view source on GitHub ↗
(session: ConflictSession)

Source from the content-addressed store, hash-verified

129}
130
131export 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
153const largeMemoryFilesNotice: StatusNoticeDefinition = {

Calls

no outgoing calls

Tested by

no test coverage detected