mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-21 20:18:47 +08:00
fix(aliyundrive_open): use RawStdEncoding
for base64
This commit is contained in:
parent
5606c23768
commit
13e8d36e1a
@ -66,7 +66,7 @@ func getSub(token string) (string, error) {
|
||||
if len(segments) != 3 {
|
||||
return "", errors.New("not a jwt token because of invalid segments")
|
||||
}
|
||||
bs, err := base64.StdEncoding.DecodeString(segments[1])
|
||||
bs, err := base64.RawStdEncoding.DecodeString(segments[1])
|
||||
if err != nil {
|
||||
return "", errors.New("failed to decode jwt token")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user