summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-09-08 00:39:47 -0700
committerMatthew Miller <matthew@millerti.me>2020-09-08 00:39:47 -0700
commit1bcf7a54f1e69596df674ef9d05dc3ada84bdfd2 (patch)
treeddd5359878d0425b101ccb05a84835154e42ae6b
parenta86daa177dfa66b486cdef74d20f610425f8998a (diff)
Remove console logging
-rw-r--r--packages/server/src/helpers/convertPublicKeyToPEM.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/packages/server/src/helpers/convertPublicKeyToPEM.ts b/packages/server/src/helpers/convertPublicKeyToPEM.ts
index ced4ad7..89d14c0 100644
--- a/packages/server/src/helpers/convertPublicKeyToPEM.ts
+++ b/packages/server/src/helpers/convertPublicKeyToPEM.ts
@@ -7,13 +7,11 @@ import convertX509CertToPEM from './convertX509CertToPEM';
export default function convertPublicKeyToPEM(publicKey: string): string {
const publicKeyBuffer = base64url.toBuffer(publicKey);
- console.log(publicKeyBuffer.toString('hex'));
let struct;
try {
struct = cbor.decodeAllSync(publicKeyBuffer)[0];
} catch (err) {
- console.warn('Caught error when trying to decode public key, might be an old public key');
/**
* Catching an error here means we're probably converting an "old" EC2 public key that was
* saved before we started returning the full credentialPublicKey from an attestation.