Skip to content

Instantly share code, notes, and snippets.

@arch1995
arch1995 / derviation.ts
Last active March 16, 2023 10:49
Scoped Key derivation from core kit key
import { subkey } from "@toruslabs/openlogin-subkey";
const getScopedKey = (coreKitKey: string, clientId: string) => {
return subkey(coreKitKey, Buffer.from(clientId, "base64"));
}