Memco

Class CreatedKey

A key just created, carrying the one copy of its value there will ever be.

The value is a working credential, and the service shows it only here, so store it now. It is left out of every rendering of this object — console.log, util.inspect, JSON.stringify, a spread — so it cannot reach a log line or a crash report by that route; read CreatedKey.value where you mean to.

Index

The key's description, as listing the user's keys will show it.

value: string

The key itself, a working credential. Declared rather than defined, so the constructor's Object.defineProperty is what creates it — a normal field declaration would emit an enumerable one and undo the hiding.

  • The key's description without its value, for util.inspect and console.log.

    Returns string

    A rendering that omits the value even under showHidden.

On this page