mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 12:27:44 +00:00
fix: bearer token interception for direct API calls
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { betterAuth } from "better-auth";
|
||||
import {
|
||||
bearer,
|
||||
organization,
|
||||
passkey,
|
||||
phoneNumber,
|
||||
@@ -12,6 +13,7 @@ import { resend } from "./email/resend";
|
||||
|
||||
const from = process.env.BETTER_AUTH_EMAIL || "delivered@resend.dev";
|
||||
const to = process.env.TEST_EMAIL || "";
|
||||
|
||||
export const auth = betterAuth({
|
||||
database: new LibsqlDialect({
|
||||
url: process.env.TURSO_DATABASE_URL || "",
|
||||
@@ -80,6 +82,7 @@ export const auth = betterAuth({
|
||||
},
|
||||
}),
|
||||
passkey(),
|
||||
bearer()
|
||||
],
|
||||
socialProviders: {
|
||||
github: {
|
||||
|
||||
Reference in New Issue
Block a user