Zoom social login
A web application needs users to authenticate with their Zoom accounts.
Better Auth · Const
Better Auth’s Zoom provider enables OAuth sign-in through a Zoom app. Configure the app credentials under socialProviders.zoom, then start authentication with signIn.social({ provider: "zoom" }).
The Zoom provider is enabled by placing its client ID and client secret under the auth instance's socialProviders configuration. Client code starts OAuth by calling signIn.social with provider set to zoom; the redirect URL and required Zoom scopes must also be configured in the Zoom app.
zoom: { clientId: string, clientSecret: string }
authClient.signIn.social({ provider: "zoom" })| Name | Type | Description |
|---|---|---|
clientId | string | OAuth client identifier for the Zoom application. |
clientSecret | string | OAuth client secret for the Zoom application. |
The page does not specify a return type or response shape for the Zoom provider configuration or sign-in call.
import { betterAuth } from "better-auth"
import { createAuthClient } from "better-auth/client"
export const auth = betterAuth({
socialProviders: {
zoom: {
clientId: process.env.ZOOM_CLIENT_ID as string,
clientSecret: process.env.ZOOM_CLIENT_SECRET as string,
},
},
})
const authClient = createAuthClient()
await authClient.signIn.social({ provider: "zoom" })Configure Zoom with its OAuth credentials, then invoke the client social sign-in method with Zoom selected.
A web application needs users to authenticate with their Zoom accounts.
An application is integrating Zoom OAuth credentials into its Better Auth server configuration.
A client needs to launch the browser-based Zoom authentication flow.
Add a zoom entry inside socialProviders with clientId and clientSecret values, then call the client’s signIn.social method using provider: "zoom". The provider credentials come from the Zoom app configuration.
Follow-up: What OAuth app setting is needed beyond credentials? The Zoom app must include the Better Auth callback URL under OAuth Redirect URL.
The client sign-in call is await authClient.signIn.social({ provider: "zoom" }). This selects Zoom as the OAuth provider for the authentication flow.
Follow-up: Which permission should the Zoom app include? The documented setup instructs selecting the user:read:user scope and adding other application-required scopes.
Create a Zoom Marketplace General App, choose User-managed, copy its Client ID and Client Secret, and configure the OAuth redirect URL. Then pass those credentials to Better Auth’s zoom provider configuration.
Follow-up: Where should credentials be stored? The page instructs copying them and storing them in a safe location; the example reads them from environment variables.
betterAuthsocialProviderssignIn.socialcreateAuthClientclientIdclientSecret