plugins/bearer library

Bearer plugin: authenticate with an Authorization: Bearer <token> header instead of cookies.

Requires the bearer() plugin on your Better Auth server.

Classes

BearerOptions

Extensions

BearerOptionsPatterns on BearerOptions
Adds pattern-matching-related methods to BearerOptions.
BetterAuthBearerExtension on BetterAuthClient
Bearer-mode helpers on the client.