mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +00:00
docs: remove provider imports
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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({
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user