Social sign-in
Offer Kick as an OAuth login option alongside other social providers.
Better Auth · Const
Kick is configured as a Better Auth social provider with a client ID and client secret. Clients begin authentication with signIn.social({ provider: "kick" }).
Kick is a social authentication provider configured under Better Auth’s socialProviders option. Supply the Kick client ID and secret, then invoke the client’s social sign-in flow with provider set to "kick"; the OAuth redirect must match the application’s configured callback URL.
socialProviders: { kick: { clientId: string, clientSecret: string } }
await authClient.signIn.social({ provider: "kick" })| Name | Type | Description |
|---|---|---|
provider | string | The social provider identifier; set it to kick. |
The documentation does not specify a return type or response shape for this provider flow.
socialProviders configuration.signIn.social.kick as the social provider identifier.import { betterAuth } from "better-auth"
import { createAuthClient } from "better-auth/client"
export const auth = betterAuth({
socialProviders: {
kick: {
clientId: process.env.KICK_CLIENT_ID as string,
clientSecret: process.env.KICK_CLIENT_SECRET as string,
},
},
})
const authClient = createAuthClient()
await authClient.signIn.social({ provider: "kick" })Configure Kick with its client credentials, then start OAuth sign-in through the client’s social sign-in method.
Offer Kick as an OAuth login option alongside other social providers.
Use Kick credentials in a local development environment.
Provide a Kick login flow in a production application.
Configure Kick inside socialProviders with clientId and clientSecret, then call authClient.signIn.social({ provider: "kick" }) on the client. The provider value must be the string kick.
Follow-up: What configuration detail can break the OAuth flow after moving auth routes? Update the provider’s redirect URL to reflect the new auth-route base path.
The server configuration stores the Kick credentials under socialProviders.kick. The client starts authentication through Better Auth’s standard social sign-in API rather than a Kick-specific client method.
Follow-up: What must be supplied for the provider configuration? Both a Kick client ID and client secret are required.
Kick requires a registered redirect URL, with the local-development callback shown as http://localhost:3000/api/auth/callback/kick. Production should use the application’s production URL.
Follow-up: What should be checked if localhost works but production does not? Register the production callback URL rather than reusing the localhost URL.
betterAuthsocialProviderscreateAuthClientsignIn.social