Docs

Bearer

The Bearer plugin allows you to authenticate with a Bearer token instead of a browser cookie. It proxies the request and set the bearer token in the Authorization header to a cookie request internally.

Add the Bearer plugin

auth.ts
import {  } from "better-auth";
import {  } from "better-auth/plugins";
 
export const  = ({
    : {
        : 'sqlite',
        : './db.sqlite'
    },
    : [()]
});

On this page

Edit on GitHub