Add Zoom sign-in
Users authenticate with Zoom in an Auth.js application.
Auth.js · Const
The Zoom provider factory adds Zoom OAuth authentication to Auth.js. Configure it with Zoom client credentials and include the resulting provider in Auth.js's providers array.
The default export is a provider factory that accepts Zoom OAuth configuration and returns an Auth.js OAuth provider definition. Add the returned provider to the providers array passed to Auth; Auth.js supplies the standard Zoom OAuth settings unless you override them.
function default(config): OAuthConfig<ZoomProfile>| Name | Type | Description |
|---|---|---|
config | OAuthUserConfig<ZoomProfile> | Optional OAuth provider configuration for the Zoom profile, including credentials and any supported overrides. |
OAuthConfig<ZoomProfile>
import { Auth } from "@auth/core"
import Zoom from "@auth/core/providers/zoom"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
Zoom({
clientId: ZOOM_CLIENT_ID,
clientSecret: ZOOM_CLIENT_SECRET,
}),
],
})Creates an Auth.js request handler configured with Zoom OAuth using the client credentials supplied by the application.
Users authenticate with Zoom in an Auth.js application.
An application needs to change a built-in OAuth setting.
A Zoom OAuth app is being connected to Auth.js Core.
Call Zoom with an OAuthUserConfig<ZoomProfile> object, commonly containing clientId and clientSecret. The resulting OAuthConfig<ZoomProfile> belongs in the providers array.
Follow-up: What callback URL must the Zoom application register? Use https://example.com/api/auth/callback/zoom for the documented core setup.
Import Zoom from @auth/core/providers/zoom, invoke it with the client credentials, and pass the result to Auth under providers. This enables Zoom login with the provider's defaults.
Follow-up: How can defaults be changed? Supply additional provider options in the factory call, using Auth.js's built-in OAuth-provider customization mechanism.
The documented callback URL is https://example.com/api/auth/callback/zoom. It is the endpoint Zoom should redirect to after authentication in the shown core configuration.
Follow-up: What happens if the provider configuration needs nonstandard behavior? Override the built-in OAuth defaults in the provider configuration rather than replacing the provider immediately.
ZoomProfileOAuthConfigOAuthUserConfigcustomizing a built-in OAuth provider