mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-04-29 15:37:50 +00:00
20 lines
358 B
Plaintext
20 lines
358 B
Plaintext
## isValidSecret
|
|
|
|
`isValidSecret(secret: string): boolean`
|
|
|
|
Checks if the specified string contains a valid secret.
|
|
|
|
### Parameters
|
|
|
|
This method takes one parameter, the secret which to validate.
|
|
|
|
### Return Value
|
|
|
|
This method returns `true` if the secret is valid and `false` if it is not.
|
|
|
|
### Example
|
|
|
|
```javascript
|
|
return api.isValidSecret("secret")
|
|
```
|