UNPKG

@reown/appkit-siwx

Version:

The chain agnostic tool to enable authentication for AppKit applications.

10 lines 365 B
import { useEffect, useState } from 'react'; import { OptionsController } from '@reown/appkit-controllers'; export function useAppKitSIWX() { const [siwx, setSiwx] = useState(OptionsController.state.siwx); useEffect(() => OptionsController.subscribeKey('siwx', val => { setSiwx(val); }), []); return siwx; } //# sourceMappingURL=react.js.map