PicketProvidercreates a Picket context, which makes user authentication information available throughout your app! It takes a publishable API key as a prop.
PicketProvider, you can use the
usePickethook to get user authentication information within your app. Below is an example of a component that renders different information based on the user's authentication state.
usePickethook provides your components information about the user's authentication state. You can use it to require authentication on specific routes, get user information, or get the
PicketProviderto make a user's authentication and authorization state globally available to all child components.
usePicketis a wrapper around the
useContextReact hook that makes all Picket-related authentication information accessible.