Skip to content

Function: requireSshPublicKey() ​

ts
function requireSshPublicKey(value): string;

Returns the trimmed key, or throws when value is not exactly one valid OpenSSH public key.

Parameters ​

ParameterType
valueunknown

Returns ​

string