> ## 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 social-login

> Enable or disable social login providers in your local auth config

Configure whether end users can sign in to your app with a social identity provider, such as Google, Microsoft, Facebook, or Apple. This is the CLI equivalent of toggling social login options in your app's [authentication settings](/Setting-up-your-app/Managing-login-and-registration).

This command updates your local auth config file. To apply the change to your deployed app, run [`auth push`](/developers/references/cli/commands/auth-push) or [`deploy`](/developers/references/cli/commands/deploy).

## Usage

Enable a social login provider:

```bash theme={null}
base44 auth social-login google enable
```

Enable Google with your own OAuth credentials:

```sh theme={null}
base44 auth social-login google enable --client-id < id > --client-secret < secret >
```

Disable a social login provider:

```bash theme={null}
base44 auth social-login microsoft disable
```

## Arguments

| Argument            | Description                                                          | Required |
| ------------------- | -------------------------------------------------------------------- | -------- |
| `<provider>`        | Social login provider: `google`, `microsoft`, `facebook`, or `apple` | Yes      |
| `<enable\|disable>` | Whether to enable or disable the provider                            | Yes      |

<Warning>
  If disabling a provider would leave your app with no active login methods, the command warns that users will be locked out. Enable an alternative login method before disabling the last one.
</Warning>

## Flags

The following flags configure custom OAuth credentials. They are currently supported for Google only. Other providers use Base44-managed credentials.

| Flag                       | Description                                                                                          |
| -------------------------- | ---------------------------------------------------------------------------------------------------- |
| `--client-id <id>`         | Custom OAuth client ID.                                                                              |
| `--client-secret <secret>` | Custom OAuth client secret.                                                                          |
| `--client-secret-stdin`    | Read the client secret from stdin.                                                                   |
| `--env-file <path>`        | Read the client secret from a `.env` file. The file must contain a `google_oauth_client_secret` key. |

## See also

* [`auth password-login`](/developers/references/cli/commands/auth-password-login): Enable or disable email and password login
* [`auth pull`](/developers/references/cli/commands/auth-pull): Fetch auth config from Base44 to your local project
* [`auth push`](/developers/references/cli/commands/auth-push): Push local auth config to Base44
* [`secrets set`](/developers/references/cli/commands/secrets-set): Set project secrets manually
* [`deploy`](/developers/references/cli/commands/deploy): Deploy all project resources, including auth config
* [Managing login and registration](/Setting-up-your-app/Managing-login-and-registration): Configure login options in the dashboard
