> ## 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](https://docs.base44.com/Setting-up-your-app/Managing-login-and-registration.md).

Social login and [SSO](https://docs.base44.com/developers/references/cli/commands/auth-sso.md) are mutually exclusive. Enabling a social login provider disables SSO, and enabling SSO disables all social login providers.

This command updates your local auth config file. To apply the change to your deployed app, run [`auth push`](https://docs.base44.com/developers/references/cli/commands/auth-push) or [`deploy`](https://docs.base44.com/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.

## 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`](https://docs.base44.com/developers/references/cli/commands/auth-password-login): Enable or disable email and password login
* [`auth pull`](https://docs.base44.com/developers/references/cli/commands/auth-pull): Fetch auth config from Base44 to your local project
* [`auth push`](https://docs.base44.com/developers/references/cli/commands/auth-push): Push local auth config to Base44
* [`secrets set`](https://docs.base44.com/developers/references/cli/commands/secrets-set): Set project secrets manually
* [`deploy`](https://docs.base44.com/developers/references/cli/commands/deploy): Deploy all project resources, including auth config
* [Managing login and registration](https://docs.base44.com/Setting-up-your-app/Managing-login-and-registration.md): Configure login options in the dashboard


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.