Skip to content

Commit

Permalink
fix: UserInfo with JWT access token (return error in DecryptAES)
Browse files Browse the repository at this point in the history
  • Loading branch information
livio-a committed Oct 16, 2020
1 parent c1699a2 commit 9b480be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9b480be

Please sign in to comment.