/// /** * Google Auth Manager - Unified auth management utility * * This utility encapsulates all Google Auth best practices: * - Uses wish() with framework's built-in picker for multi-account selection * - Detects missing scopes and navigates to auth piece * - Detects expired tokens and provides recovery UI * - Pre-composed UI components for consistent UX * * Usage: * ```typescript * const { auth, fullUI, isReady } = createGoogleAuth({ * requiredScopes: ["gmail", "drive"], * }); * * // Guard API calls with isReady * if (!isReady) return; * // Use auth.token for API calls * * // In UI: {fullUI} handles all auth states * return { [UI]:
To use this feature, connect a Google account with these permissions: {" "} {scopesList}