Skip to content

Commit cd39611

Browse files
committed
Update minimum length for the auth secret
1 parent 759fa21 commit cd39611

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ function sendNotification(endpoint, params) {
135135
if (userAuth) {
136136
if (typeof userAuth !== 'string') {
137137
throw new Error('userAuth should be a base64-encoded string.');
138-
} else if (urlBase64.decode(userAuth).length < 12) {
139-
throw new Error('userAuth should be at least 12 bytes long');
138+
} else if (urlBase64.decode(userAuth).length < 16) {
139+
throw new Error('userAuth should be at least 16 bytes long');
140140
}
141141
}
142142

0 commit comments

Comments
 (0)