Skip to content

Commit

Permalink
fix(aliyundrive_open): use RawStdEncoding for base64
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Aug 13, 2023
1 parent 5606c23 commit 13e8d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/aliyundrive_open/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 13e8d36

Please sign in to comment.