fix: UserInfo with JWT access token (return error in DecryptAES)
This commit is contained in:
parent
c1699a2d93
commit
9b480be13a
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ func EncryptBytesAES(plainText []byte, key string) ([]byte, error) {
|
||||||
func DecryptAES(data string, key string) (string, error) {
|
func DecryptAES(data string, key string) (string, error) {
|
||||||
text, err := base64.URLEncoding.DecodeString(data)
|
text, err := base64.URLEncoding.DecodeString(data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", nil
|
return "", err
|
||||||
}
|
}
|
||||||
decrypted, err := DecryptBytesAES(text, key)
|
decrypted, err := DecryptBytesAES(text, key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue