@registeragent/remix
v0.1.1
Published
AIP verification helper for Remix applications
Readme
@registeragent/remix
Remix loader helpers for AIP token verification.
Install
npm install @registeragent/remixUsage
import { getAipIdentity, requireAipIdentity } from "@registeragent/remix";
export async function loader({ request }: LoaderFunctionArgs) {
const identity = await getAipIdentity(request, config);
// or
const identity = await requireAipIdentity(request, config); // throws if unauthenticated
return json({ entityId: identity.entityId });
}Links
License
MIT
