Circle V2 API Docs
    Preparing search index...

    Function buildLegacySupabaseSessionCookie

    • Builds the sb-<ref>-auth-token cookie payload Supabase SSR expects.

      Returns null when the project ref can't be derived from SUPABASE_URL or the access token can't be decoded (callers fall back to whatever auth they had).

      Parameters

      • accessToken: string
      • refreshToken: string
      • options: { nowSeconds?: number; supabaseUrl?: string } = {}

      Returns { name: string; value: string } | null