1
0

Change error message

This commit is contained in:
2021-11-02 13:56:12 +01:00
parent 9ab38705b6
commit 8fcf682c9c
4 changed files with 3 additions and 392 deletions

View File

@@ -87,7 +87,7 @@ class JWT {
throw new Error('options.algorithm must be a string')
const tokenParts = token.split('.')
if (tokenParts.length !== 3)
throw new Error('token must have 3 parts')
throw new Error('token must consist of 3 parts')
const importAlgorithm = this.algorithms[options.algorithm]
if (!importAlgorithm)
throw new Error('algorithm not found')