@spknetwork/auth-react
v0.0.7
Published
Downloads
3
Readme
@spknetwork/auth-react
A react library for authenticating with Ceramic.
Hive Keychain Authentication
Hooks
useHiveKeyChainCeramic
Using the useHiveKeychainCeramic
hook will cause a service HiveKeychainCeramicConnector singleton to be created on the first hook usage and memoized so that the same instance is returned for all subsequent uses of the hook. The memoization works globally (across components) using a jotai atom.
The ceramicHost
and hiveHosts
are optional parameters. If not specified, they will default to commonly used hosts. See here for details.
import { useHiveKeychainCeramic } from 'spk-auth-react'
const connector = useHiveKeychainCeramic(ceramicHost?, hiveHosts?)