Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
import { Input } from '@librechat/client';
import { useLocalize } from '~/hooks';
export const isBackupCode = (code: string): boolean =>
/^(?:[a-f0-9]{8}|[a-f0-9]{32})$/.test(code.trim());
export default function BackupCodeInput({
value,
onChange,
}: {
value: string;
onChange: (value: string) => void;
}) {
const localize = useLocalize();
return (
<Input
aria-label={localize('com_ui_backup_code_verification_required')}
value={value}
onChange={(event) => onChange(event.target.value.trim())}
autoComplete="one-time-code"
autoCapitalize="none"
spellCheck={false}
/>
);
}