From 9b480be13a2a97847447510786ff41361ce21d52 Mon Sep 17 00:00:00 2001 From: Livio Amstutz Date: Fri, 16 Oct 2020 10:47:33 +0200 Subject: [PATCH] fix: UserInfo with JWT access token (return error in DecryptAES) --- pkg/utils/crypto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/crypto.go b/pkg/utils/crypto.go index 15de1f9f..4034f48f 100644 --- a/pkg/utils/crypto.go +++ b/pkg/utils/crypto.go @@ -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 {