Auth Providers
Manage auth providers such as Google, Facebook, GitHub, LinkedIn, Spotify, and Dribbble.
memberstack providers <subcommand> [options]providers list
List configured auth providers.
memberstack providers listExample
$ memberstack providers list
ID Type Name Enabled Client ID
sso_abc123 GOOGLE Google Login true 123456789.apps.googleusercontent.com
sso_def456 GITHUB GitHub Login falseproviders configure
Configure an auth provider. Use this to set up a new provider or update an existing one.
memberstack providers configure [options]Options
| Option | Description | Required |
|---|---|---|
--type <type> | Provider type: GOOGLE, FACEBOOK, GITHUB, LINKEDIN, SPOTIFY, DRIBBBLE | Yes |
--name <name> | Display name | No |
--client-id <id> | OAuth client ID | No |
--client-secret <secret> | OAuth client secret | No |
--status <status> | Provider status: enabled, disabled | No |
Enabling requires credentials
Setting --status enabled requires both --client-id and --client-secret to be provided.
Examples
# Configure a Google provider with credentials and enable it
memberstack providers configure --type GOOGLE --name "Google Login" --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET --status enabled
# Update the display name of an existing provider
memberstack providers configure --type GITHUB --name "Sign in with GitHub"
# Disable a provider without removing it
memberstack providers configure --type FACEBOOK --status disabledproviders remove
Remove an auth provider by its configuration ID.
memberstack providers remove <id>Arguments
| Argument | Description | Required |
|---|---|---|
id | Provider configuration ID | Yes |
Example
memberstack providers remove sso_abc123FAQ
How is this guide?
Last updated on