minca
ApiCoreFunctions

Function: createDeviceKey()

function createDeviceKey(dbName?): Promise<DeviceKey>;

Defined in: packages/core/src/identity/device-key.ts:26

Makes a key for this device and remembers it. Non-extractable on purpose: a CryptoKey survives IndexedDB, and no code path can turn it back into bytes.

Parameters

ParameterTypeDefault value
dbName?stringDB_NAME

Returns

Promise<DeviceKey>

On this page