UNPKG

permissionless

Version:

A utility library for working with ERC-4337

15 lines 514 B
import { toHex } from "viem"; import { getOxExports } from "../../utils/ox.js"; export const startAuthentication = async (client) => { const response = await client.request({ method: "pks_startAuthentication", params: [] }); return { challenge: toHex((await getOxExports()).Base64.toBytes(response.challenge)), rpId: response.rpId, userVerification: response.userVerification, uuid: response.uuid }; }; //# sourceMappingURL=startAuthentication.js.map