react-pocketbase-authentication
v1.6.0
Published
Simple authentication provider and utils using React and Pocketbase
Downloads
4
Readme
react-pocketbase-authentication
Simple authentication provider and utils using React and Pocketbase
Install
// with npm
npm i react-pocketbase-authentication
// with yarn
yarn add react-pocketbase-authentication
Usage
import { AuthProvider, useAuthentication, ... } from 'react-pocketbase-authentication';
<AuthProvider client={yourPocketbaseClient} ...>
...
const { isAuthenticated, user, ... } = useAuthentication();