@simplewebauthn/server
Version:
SimpleWebAuthn for Servers
12 lines (11 loc) • 389 B
JavaScript
import { isoCBOR } from './iso/index.js';
export function decodeCredentialPublicKey(publicKey) {
return _decodeCredentialPublicKeyInternals.stubThis(isoCBOR.decodeFirst(publicKey));
}
/**
* Make it possible to stub the return value during testing
* @ignore Don't include this in docs output
*/
export const _decodeCredentialPublicKeyInternals = {
stubThis: (value) => value,
};