> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base44.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Auth

> נהל את שיטות ההתחברות של האפליקציה שלך באמצעות קבצי תצורה מקומיים

<div className="dev-docs-banner">
  <div className="dev-docs-banner-content">
    <div className="dev-docs-banner-title">
      אתה צופה בתיעוד למפתחים
    </div>

    <div className="dev-docs-banner-text">
      תיעוד זה מיועד למפתחים העובדים עם פלטפורמת המפתחים של Base44. למידע על ניהול שיטות התחברות בעורך האפליקציות, ראה <a href="/Setting-up-your-app/Managing-login-and-registration">ניהול התחברות ורישום</a>.
    </div>
  </div>
</div>

אימות שולט באופן שבו משתמשי האפליקציה שלך נכנסים, נרשמים וניגשים לתכונות שלה. Auth config מאפשר לך לנהל שיטות התחברות כקובץ JSONC מקומי שאתה מסנכרן עם Base44 באמצעות ה-CLI.

## הגדרה

תצורת ה-auth שלך היא קובץ JSONC יחיד ב-`base44/auth/config.jsonc`. תוכל להתאים אישית את נתיב התיקייה עם המאפיין `authDir` ב[תצורת הפרויקט שלך](/developers/backend/overview/project-structure#config-jsonc). משוך את התצורה הנוכחית מ-Base44 עם [`auth pull`](/developers/references/cli/commands/auth-pull), ולאחר מכן דחוף שינויים עם [`auth push`](/developers/references/cli/commands/auth-push) או [`deploy`](/developers/references/cli/commands/deploy).

תוכל גם להחליף שיטות התחברות משורת הפקודה עם [`auth password-login`](/developers/references/cli/commands/auth-password-login) ו-[`auth social-login`](/developers/references/cli/commands/auth-social-login).

## דוגמה

```jsonc theme={null}
{
  "enableUsernamePassword": true,
  "enableGoogleLogin": false,
  "enableMicrosoftLogin": false,
  "enableFacebookLogin": false,
  "enableAppleLogin": false,
  "googleOAuthMode": "default",
  "googleOAuthClientId": null
}
```

## סימוכין שדות

<ResponseField name="enableUsernamePassword" type="boolean">
  לאפשר למשתמשים להיכנס עם כתובת אימייל וסיסמה. ברירת מחדל היא `false`.
</ResponseField>

<ResponseField name="enableGoogleLogin" type="boolean">
  לאפשר למשתמשים להיכנס עם Google. ברירת מחדל היא `false`.
</ResponseField>

<ResponseField name="enableMicrosoftLogin" type="boolean">
  לאפשר למשתמשים להיכנס עם Microsoft. ברירת מחדל היא `false`.
</ResponseField>

<ResponseField name="enableFacebookLogin" type="boolean">
  לאפשר למשתמשים להיכנס עם Facebook. ברירת מחדל היא `false`.
</ResponseField>

<ResponseField name="enableAppleLogin" type="boolean">
  לאפשר למשתמשים להיכנס עם Apple. ברירת מחדל היא `false`.
</ResponseField>

<ResponseField name="googleOAuthMode" type="&#x22;default&#x22; | &#x22;custom&#x22;">
  כיצד אישורי Google OAuth מקורם. השתמש ב-`default` כדי להשתמש באישורים מנוהלי Base44, או `custom` כדי להשתמש בלקוח OAuth משלך. ברירת מחדל היא `default`.
</ResponseField>

<ResponseField name="googleOAuthClientId" type="string | null">
  Custom Google OAuth client ID. בשימוש רק כאשר `googleOAuthMode` הוא `custom`. הגדר זאת עם [`auth social-login google enable --client-id`](/developers/references/cli/commands/auth-social-login). client secret התואם נשמר כ-project secret, לא בקובץ זה. ברירת מחדל היא `null`.
</ResponseField>

<Warning>
  אם בתצורה שלך אין שיטות התחברות מופעלות, ה-CLI מזהיר שמשתמשים ייחסמו מחוץ לאפליקציה כאשר תדחוף. ודא ששיטת התחברות אחת לפחות מופעלת.
</Warning>

## ראה גם

* [`auth pull`](/developers/references/cli/commands/auth-pull): שלוף auth config מ-Base44
* [`auth push`](/developers/references/cli/commands/auth-push): דחוף auth config ל-Base44
* [`auth password-login`](/developers/references/cli/commands/auth-password-login): הפעל או השבת התחברות בסיסמה
* [`auth social-login`](/developers/references/cli/commands/auth-social-login): הפעל או השבת ספקי התחברות חברתיים
* [`deploy`](/developers/references/cli/commands/deploy): פרוס את כל משאבי הפרויקט
* [Managing login and registration](/Setting-up-your-app/Managing-login-and-registration): הגדר אפשרויות התחברות בלוח הבקרה

<Note>דף זה תורגם באמצעות בינה מלאכותית. למידע המדויק והעדכני ביותר, עיין ב[גרסה האנגלית](/). </Note>
