docs: remove provider imports

This commit is contained in:
Bereket Engida
2024-10-09 15:54:00 +03:00
parent 754465f13d
commit b1bd6912bb
9 changed files with 2 additions and 11 deletions

View File

@@ -19,7 +19,6 @@ description: Apple
```ts title="auth.ts"
import { betterAuth } from "better-auth"
import { apple } from "better-auth/social-providers"
export const auth = betterAuth({
socialProviders: { // [!code highlight]

View File

@@ -17,7 +17,6 @@ description: Discord Provider
```ts title="auth.ts"
import { betterAuth } from "better-auth"
import { discord } from "better-auth/social-providers"
export const auth = betterAuth({
socialProviders: { // [!code highlight]

View File

@@ -17,7 +17,6 @@ description: Facebook Provider
```ts title="auth.ts"
import { betterAuth } from "better-auth"
import { facebook } from "better-auth/social-providers"
export const auth = betterAuth({
socialProviders: { // [!code highlight]

View File

@@ -17,7 +17,6 @@ description: Github Provider
```ts title="auth.ts"
import { betterAuth } from "better-auth"
import { github } from "better-auth/social-providers"
export const auth = betterAuth({
socialProviders: { // [!code highlight]

View File

@@ -17,7 +17,6 @@ description: Google Provider
```ts title="auth.ts"
import { betterAuth } from "better-auth"
import { google } from "better-auth/social-providers"
export const auth = betterAuth({
socialProviders: { // [!code highlight]

View File

@@ -20,8 +20,7 @@ Enabling OAuth with Microsoft Azure Entra ID (formerly Active Directory) allows
```ts title="auth.ts"
import { betterAuth } from "better-auth"
import { google } from "better-auth/social-providers"
export const auth = betterAuth({
socialProviders: { // [!code highlight]
google: { // [!code highlight]

View File

@@ -17,7 +17,6 @@ description: Spotify Provider
```ts title="auth.ts"
import { betterAuth } from "better-auth"
import { spotify } from "better-auth/social-providers"
export const auth = betterAuth({

View File

@@ -17,7 +17,6 @@ description: Twitch Provider
```ts title="auth.ts"
import { betterAuth } from "better-auth"
import { twitch } from "better-auth/social-providers"
export const auth = betterAuth({
socialProviders: { // [!code highlight]

View File

@@ -16,8 +16,7 @@ description: Twitter Provider
To configure the provider, you need to import the provider and pass it to the `socialProviders` option of the auth instance.
```ts title="auth.ts"
import { betterAuth } from "better-auth"
import { twitter } from "better-auth/social-providers"
import { betterAuth } from "better-auth"
export const auth = betterAuth({
socialProviders: {// [!code highlight]