Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

382 B
Raw Blame
import * as Clipboard from "expo-clipboard";

/**
 * Copy a device sign-in code. Resolves false instead of rejecting when the
 * clipboard is unavailable, so the caller can ask the user to copy by hand.
 */
export async function copySignInCode(code: string): Promise<boolean> {
  try {
    await Clipboard.setStringAsync(code);

    return true;
  } catch {
    return false;
  }
}