12 lines
271 B
TypeScript
12 lines
271 B
TypeScript
import PocketBase from "pocketbase"
|
|
|
|
const pbClient = new PocketBase("https://lark-egg-preview.ai.xiaomi.com")
|
|
|
|
pbClient.autoCancellation(false)
|
|
|
|
await pbClient
|
|
.collection("_superusers")
|
|
.authWithPassword(Bun.env.PB_USER!, Bun.env.PB_PASS!)
|
|
|
|
export default pbClient
|