Class CreatedKey
Properties
Readonlykey
The key's description, as listing the user's keys will show it.
Readonlyvalue
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.
Methods
toJSON
-
The key's description without its value, for
JSON.stringify.Returns { key: ExternalUserKey }
Everything but the value.
-
key: ExternalUserKey
The key's description.
-
[custom]
-
The key's description without its value, for
util.inspectandconsole.log.Returns string
A rendering that omits the value even under
showHidden.
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.