feat: authentication with OAuth
Some checks failed
ci / ci (22, ubuntu-latest) (push) Failing after 6m46s

This commit is contained in:
2025-12-07 21:27:23 +01:00
parent 84bd0d487c
commit 1bdfbdb446
13 changed files with 1036 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
import PocketBase from 'pocketbase';
let pbInstance: PocketBase | null = null;
export const usePocketbase = () => {
if (!pbInstance) {
const config = useRuntimeConfig();
pbInstance = new PocketBase(config.pocketbaseUrl || 'http://localhost:8090');
if (import.meta.server) {
pbInstance.autoCancellation(false);
}
}
return pbInstance;
};