mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 12:27:44 +00:00
docs: add missing trustedOrigins option (#2822)
This commit is contained in:
@@ -42,6 +42,17 @@ export const auth = betterAuth({
|
|||||||
|
|
||||||
Default: `/api/auth`
|
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`
|
## `secret`
|
||||||
|
|
||||||
The secret used for encryption, signing, and hashing.
|
The secret used for encryption, signing, and hashing.
|
||||||
|
|||||||
Reference in New Issue
Block a user