Skip to content

Instantly share code, notes, and snippets.

@arch1995
Last active March 16, 2023 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arch1995/5625a9109d620d38117e92bd1a0fdec5 to your computer and use it in GitHub Desktop.
Save arch1995/5625a9109d620d38117e92bd1a0fdec5 to your computer and use it in GitHub Desktop.
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"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment