Last active
March 16, 2023 10:49
-
-
Save arch1995/5625a9109d620d38117e92bd1a0fdec5 to your computer and use it in GitHub Desktop.
Scoped Key derivation from core kit key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { subkey } from "@toruslabs/openlogin-subkey"; | |
const getScopedKey = (coreKitKey: string, clientId: string) => { | |
return subkey(coreKitKey, Buffer.from(clientId, "base64")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment