@spknetwork/auth-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

@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?)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.7
    1
    • latest

Version History

Package Sidebar

Install

npm i @spknetwork/auth-react

Weekly Downloads

1

Version

0.0.7

License

ISC

Unpacked Size

5.25 kB

Total Files

10

Last publish

Collaborators

  • igormuba
  • lioha
  • vaultec81
  • cyphercider