import { Tabs } from 'nextra/components'
Creates a new passkey signer using a WebAuthn credential.
const rpcUrl = "https://..."
const credential = window.navigator.credentials.create({ ... })
const passkeySigner = await Safe.createPasskeySigner(credential)
const protocolKit = await Safe.init({
provider: rpcURL,
signer: passkeySigner,
safeAddress
})
- Type:
Credential
The WebAuthn credential to use for signing.
Promise<Pick<PasskeyArgType, 'rawId' | 'coordinates'>>
An object containing the passkey signer that should be stored securely containing:
rawId
: TherawId
of the credential.coordinates
: The coordinates of the credential. The coordinates are used to sign using Safe smart contracts