Skip to main content
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. This command updates your local auth config file. To apply the change to your deployed app, run auth push or deploy.

Usage

Enable a social login provider:
base44 auth social-login google enable
Enable Google with your own OAuth credentials:
base44 auth social-login google enable --client-id < id > --client-secret < secret >
Disable a social login provider:
base44 auth social-login microsoft disable

Arguments

ArgumentDescriptionRequired
<provider>Social login provider: google, microsoft, facebook, or appleYes
<enable|disable>Whether to enable or disable the providerYes
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.
FlagDescription
--client-id <id>Custom OAuth client ID.
--client-secret <secret>Custom OAuth client secret.
--client-secret-stdinRead 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