mirror of
https://github.com/S2-/securerandomstring.git
synced 2025-08-02 10:20:05 +02:00
add err to async example
This commit is contained in:
@@ -33,7 +33,7 @@ with `_`, created a valid [base64url](https://en.wikipedia.org/wiki/Base64) form
|
||||
var result = srs({length: 256, urlsafe:true});
|
||||
|
||||
// async
|
||||
srs({length: 256, urlsafe:true}, function(sr) {
|
||||
srs({length: 256, urlsafe:true}, function(err, sr) {
|
||||
console.log(sr);
|
||||
});
|
||||
```
|
||||
|
Reference in New Issue
Block a user