KeyManager.http
Manages public key registrations remotely on a server.
Usage
wagmi.config.ts
import { tempo } from 'tempo.ts/chains'
import { KeyManager, webAuthn } from 'tempo.ts/wagmi'
import { createConfig, http } from 'wagmi'
export const config = createConfig({
connectors: [webAuthn({
keyManager: KeyManager.http('/keys'),
})],
chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
multiInjectedProviderDiscovery: false,
transports: {
[tempo.id]: http(),
},
})Parameters
url
- Type:
string
URL to the key manager server.
options
options.fetch
- Type:
typeof globalThis.fetch - Default:
globalThis.fetch
Fetch function to use for the key manager server.