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:

Parameter Type Description
id string the secret ID to validate

Returns: booleanwhether the ID is valid