mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +00:00
docs: add missing trustedOrigins option (#2822)
This commit is contained in:
@@ -42,6 +42,17 @@ export const auth = betterAuth({
|
||||
|
||||
Default: `/api/auth`
|
||||
|
||||
## `trustedOrigins`
|
||||
|
||||
List of trusted origins.
|
||||
|
||||
```ts
|
||||
import { betterAuth } from "better-auth";
|
||||
export const auth = betterAuth({
|
||||
trustedOrigins: ["http://localhost:3000", "https://example.com"],
|
||||
})
|
||||
```
|
||||
|
||||
## `secret`
|
||||
|
||||
The secret used for encryption, signing, and hashing.
|
||||
|
||||
Reference in New Issue
Block a user