> ## 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.

# base44 auth social-login

> Aktiviere oder deaktiviere Social-Login-Anbieter für deine App (Google, Microsoft, Facebook, Apple). Änderungen der Auth-Konfiguration bleiben lokal, bis du base44 auth push oder base44 deploy ausführst.

<Warning>
  Diese Seite ist Teil eines KI-Coding-Agent-Skills und für Agenten geschrieben, nicht für Menschen. Für die menschenlesbare Base44-Dokumentation siehe die [Entwicklerdokumentation](/developers).
</Warning>

# base44 auth social-login

Aktiviere oder deaktiviere Social-Login-Anbieter für deine App (Google, Microsoft, Facebook, Apple). Änderungen der Auth-Konfiguration bleiben lokal, bis du `base44 auth push` oder `base44 deploy` ausführst.

## Syntax

```bash theme={null}
npx base44 auth social-login <provider> <action> [options]
```

## Argumente

| Argument     | Beschreibung                                                      | Erforderlich |
| ------------ | ----------------------------------------------------------------- | ------------ |
| `<provider>` | Social-Login-Anbieter: `google`, `microsoft`, `facebook`, `apple` | Ja           |
| `<action>`   | `enable` oder `disable`                                           | Ja           |

## Optionen

| Option                     | Beschreibung                                                                                    | Erforderlich |
| -------------------------- | ----------------------------------------------------------------------------------------------- | ------------ |
| `--client-id <id>`         | Benutzerdefinierte OAuth-Client-ID (nur Google)                                                 | Nein         |
| `--client-secret <secret>` | Benutzerdefiniertes OAuth-Client-Secret (nur Google)                                            | Nein         |
| `--client-secret-stdin`    | Client-Secret aus stdin lesen (nur Google)                                                      | Nein         |
| `--env-file <path>`        | Client-Secret aus einer `.env`-Datei lesen, Schlüssel `google_oauth_client_secret` (nur Google) | Nein         |

Benutzerdefinierte OAuth-Optionen (`--client-id`, `--client-secret`, `--client-secret-stdin`, `--env-file`) werden nur für Google unterstützt. Für andere Anbieter aktivierst oder deaktivierst du ohne Optionen.

## Beispiele

```bash theme={null}
# Enable Google login (using Base44's default OAuth)
npx base44 auth social-login google enable

# Enable Google login with your own OAuth app (custom credentials)
npx base44 auth social-login google enable --client-id my-client-id --client-secret my-secret

# Enable Google login with secret from stdin
echo "my-secret" | npx base44 auth social-login google enable --client-id my-client-id --client-secret-stdin

# Enable Google login with credentials from a .env file
npx base44 auth social-login google enable --client-id my-client-id --env-file .env.production

# Enable Microsoft login
npx base44 auth social-login microsoft enable

# Disable Facebook login
npx base44 auth social-login facebook disable

# Enable Apple login
npx base44 auth social-login apple enable
```

## Hinweise

* Änderungen werden in die lokale `base44/auth/`-Konfiguration geschrieben. Führe `npx base44 auth push` oder `npx base44 deploy` aus, um sie anzuwenden.
* **SSO und Social-Login schließen sich gegenseitig aus** — durch das Aktivieren von Social-Login wird jede aktive SSO-Konfiguration in der lokalen Auth-Konfiguration deaktiviert (und umgekehrt).
* Das Deaktivieren der letzten aktiven Login-Methode warnt dich, dass Benutzer ausgesperrt werden.
* Bei benutzerdefiniertem OAuth für Google: `--client-id` ist erforderlich, sobald eine Secret-Option übergeben wird.
* Das Client-Secret wird im Secrets-Store von Base44 gespeichert; die Client-ID wird in der lokalen Auth-Konfiguration gespeichert.
* Wenn du eine benutzerdefinierte Client-ID setzt, ohne jetzt ein Secret anzugeben, pushe das Secret später: `npx base44 secrets set --env-file <path>`

## Verwandte Befehle

| Befehl                       | Beschreibung                                                                 |
| ---------------------------- | ---------------------------------------------------------------------------- |
| `base44 auth password-login` | Authentifizierung per Benutzername und Passwort aktivieren oder deaktivieren |
| `base44 auth sso`            | SSO-Identitätsanbieter konfigurieren                                         |
| `base44 auth push`           | Lokale Auth-Konfiguration zu Base44 pushen                                   |
| `base44 auth pull`           | Auth-Konfiguration von Base44 ziehen                                         |

<Note>Diese Seite wurde mit KI übersetzt. Für die genauesten und aktuellsten Informationen siehe die [englische Version](/). </Note>
