PocketBase providers for Refine.
- auth provider
- register
- login with password
- login with provider
- forgot password
- update password
- data provider
- filters
- sorters
- pagination
- live provider
- subscribe
- unsubscribe
yarn add refine-pocketbase
# or
npm install refine-pocketbase
import PocketBase from "pocketbase";
import { authProvider, dataProvider, liveProvider } from "refine-pocketbase";
const pb = new PocketBase(POCKETBASE_URL);
<Refine
authProvider={authProvider(pb)}
dataProvider={dataProvider(pb)}
liveProvider={liveProvider(pb)}
...
>
...
</Refine>
import { authProvider, AuthOptions } from "refine-pocketbase";
const authOptions: AuthOptions = {
loginRedirectTo: "/dashboard",
};
<Refine
authProvider={authProvider(pb, authOptions)}
...
>
...
</Refine>
- happy path test specs
-
authProvider
-
dataProvider
(except fordeleteOne
) -
liveProvider
-
- test specs for
authProvider
error conditions-
register
-
forgotPassword
-
updatePassword
-
login
-
- test specs for
dataProvider
error conditions-
getList
-
create
-
update
-
getOne
-
deleteOne
-
- test specs for
deleteOne
- leave a star
- report a bug
- open a pull request
- help others
- buy me a coffee ☕