The decrypt function should return an error If the token is not valid or the token is not encrypted by valid key ``` const decryptData = key.decryptPublic(encrypted, 'utf8'); ```
The decrypt function should return an error If the token is not valid or the token is not encrypted by valid key