<?php
$pageTitle = "How to Create a Gmail App Password for FamGateway";
$blogKicker = "Developer Guide";
include 'includes/blog-header.php';
?>
<p>To securely read payment receipts from FamPay, FamGateway requires access to the Gmail account linked to your FamPay app. However, <strong>we never want your real Gmail password</strong>.</p>
      <p>Instead, Google provides a feature called <strong>App Passwords</strong>. This is a secure, 16-character code that grants FamGateway limited access. You can revoke it at any time with a single click. Here is how to set it up in 2 minutes.</p>
      
      <div class="highlight">
        Note: You must have 2-Step Verification enabled on your Google Account to generate an App Password.
      </div>

      <div class="step-box">
        <div><span class="step-num">1</span><strong style="font-size:18px; color:#0f172a;">Go to Google Account Security</strong></div>
        <p>Open your browser and navigate to <a href="https://myaccount.google.com/security" target="_blank" rel="noopener noreferrer" style="color:#2563eb;">myaccount.google.com/security</a>. Make sure you are logged into the exact Gmail account associated with your FamPay.</p>
      </div>

      <div class="step-box">
        <div><span class="step-num">2</span><strong style="font-size:18px; color:#0f172a;">Enable 2-Step Verification</strong></div>
        <p>Scroll down to the "How you sign in to Google" section. If <strong>2-Step Verification</strong> is off, click on it and follow the prompts to enable it using your phone number.</p>
      </div>

      <div class="step-box">
        <div><span class="step-num">3</span><strong style="font-size:18px; color:#0f172a;">Search for "App Passwords"</strong></div>
        <p>Once 2-Step Verification is on, click on the search bar at the very top of the Google Account page. Type in <strong>"App Passwords"</strong> and click the result that appears.</p>
      </div>

      <div class="step-box">
        <div><span class="step-num">4</span><strong style="font-size:18px; color:#0f172a;">Generate the Password</strong></div>
        <p>You will be prompted to enter an App name. Type <strong>FamGateway</strong> and click <strong>Generate</strong>.</p>
      </div>

      <div class="step-box">
        <div><span class="step-num">5</span><strong style="font-size:18px; color:#0f172a;">Copy & Paste into FamGateway</strong></div>
        <p>Google will show a yellow box containing a 16-character password (e.g., <code>abcd efgh ijkl mnop</code>). Copy this exact password (ignoring spaces is fine, but copy it completely).</p>
        <p>Paste this into your FamGateway Dashboard under the <strong>Gmail App Password</strong> field and click Save.</p>
      </div>

      <h2>How to Revoke Access</h2>
      <p>If you ever want to stop using FamGateway, simply return to the App Passwords page in your Google account and click the trash can icon next to "FamGateway". This instantly revokes all access, keeping you in complete control.</p>

      <p><a href="../dashboard.php" style="color: #2563eb; font-weight:600;">Go to Dashboard →</a></p>
      
      <!-- Founder & Author Bio Block -->

<?php include 'includes/blog-footer.php'; ?>
