function activateUser
activateUser(
userId: number,
dataKey: CryptoKey,
decryptedPasswordHash: string,
): Promise<void>

Activate a user by wrapping the data key with their KEK

Parameters

userId: number
dataKey: CryptoKey
decryptedPasswordHash: string

Return Type

Promise<void>

Usage

import { activateUser } from "doc.ts";