Skip to content

Anonymous Identity

Anonymous identity allows you to use Open Frames that don't require users to be signed in. See Open Frames guide for more information.

Usage

import { useAnonymousIdentity } from "@frames.js/render/identity/anonymous";
import { FrameUI } from "@frames.js/render/ui";
import { useFrame } from "@frames.js/render/use-frame";
 
export function MyFrame() {
  const signerState = useAnonymousIdentity();
  const frameState = useFrame({
    homeframeUrl: "...", // url to frame
    frameActionProxy: "/frames",
    frameGetProxy: "/frames",
    frameContext: {},
    signerState,
    specification: "openframes",
  });
 
  return <FrameUI frameState={frameState} />;
}

Please see our guide on how to use Headless UI and useFrame().