localhost:1818
const useCkd: () => {
connected: boolean; // is Ckd available on localhost:1818?
signedIn: () => boolean; // are we signed in?
};
import { useCkd } from "ckd-react"; export default function UseCkdExample() { const ckd = useCkd(); return ( <pre> {JSON.stringify( { connected: ckd.connected, "signedIn()": ckd.signedIn(), }, null, 2 )} </pre> ); }
*sign in required
{ "connected": false, "signedIn()": false }