Skip to content

SecretStorage.validateId method

SecretStorage › validateId

Unofficial

Validates a secret ID (lowercase alphanumeric with optional dashes, at most 64 characters).

Signature:

validateId(id: string): boolean

Parameters:

ParameterTypeDescription
idstringthe secret ID to validate

Returns: booleanwhether the ID is valid