Zoom
Create a Zoom App from Marketplace
- 
Visit Zoom Marketplace. 
- 
Hover on the Developbutton and selectBuild App
- 
Select General Appand clickCreate
Configure your Zoom App
Ensure that you are in the Basic Information of your app settings.
- 
Under Select how the app is managed, chooseUser-managed
- 
Under App Credentials, copy yourClient IDandClient Secretand store them in a safe location
- 
Under OAuth Information->OAuth Redirect URL, add your Callback URL. For example,http://localhost:3000/api/auth/callback/zoomFor production, you should set it to the URL of your application. If you change the base path of the auth routes, you should update the redirect URL accordingly. 
Skip to the Scopes section, then
- Click the Add Scopesbutton
- Search for user:read:user(View a user) and select it
- Add any other scopes your applications needs and click Done
Configure the provider
To configure the provider, you need to import the provider and pass it to the socialProviders option of the auth instance.
import { betterAuth } from "better-auth"
export const auth = betterAuth({
  socialProviders: {
    zoom: { 
      clientId: process.env.ZOOM_CLIENT_ID as string, 
      clientSecret: process.env.ZOOM_CLIENT_SECRET as string, 
    }, 
  },
})Sign In with Zoom
To sign in with Zoom, you can use the signIn.social function provided by the client.
You will need to specify zoom as the provider.
import { createAuthClient } from "better-auth/client"
const authClient =  createAuthClient()
const signIn = async () => {
  const data = await authClient.signIn.social({
    provider: "zoom"
  })
}