import PocketBase from "pocketbase"; const pb = new PocketBase("/"); export const authPB = async () => { if (!pb.authStore.isValid) { await pb.collection('users').authWithPassword( import.meta.env.PB_EMAIL, import.meta.env.PB_PW ); } return pb; };