fix: UserInfo with JWT access token (return error in DecryptAES)

This commit is contained in:
Livio Amstutz 2020-10-16 10:47:33 +02:00
parent c1699a2d93
commit 9b480be13a

View file

@ -39,7 +39,7 @@ func EncryptBytesAES(plainText []byte, key string) ([]byte, error) {
func DecryptAES(data string, key string) (string, error) {
text, err := base64.URLEncoding.DecodeString(data)
if err != nil {
return "", nil
return "", err
}
decrypted, err := DecryptBytesAES(text, key)
if err != nil {