Skip to content

Commit

Permalink
fix(aliyundrive_share): reget share token if token expired (close #1798)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Sep 25, 2022
1 parent 7c32af4 commit 96d8a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/aliyundrive_share/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (d *AliyundriveShare) getFiles(fileId string) ([]File, error) {
}
log.Debugf("aliyundrive share get files: %s", res.String())
if e.Code != "" {
if e.Code == "AccessTokenInvalid" {
if e.Code == "AccessTokenInvalid" || e.Code == "ShareLinkTokenInvalid" {
err = d.getShareToken()
if err != nil {
return nil, err
Expand Down

0 comments on commit 96d8a38

Please sign in to comment.