Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
368 B
Raw Blame
const STATIC_AUTH_TYPES = new Set(['bearer', 'basic', 'apiKey'])

export function connectorAuthenticationLabel(authType: unknown): string {
  if (authType === 'oauth') return 'OAuth'
  if (typeof authType === 'string' && STATIC_AUTH_TYPES.has(authType)) {
    return 'Static credentials'
  }
  if (authType == null || authType === 'none') return ''
  return 'Other'
}