Skip to content

Commit

Permalink
Use offline access
Browse files Browse the repository at this point in the history
  • Loading branch information
zapo committed Jul 15, 2024
1 parent b9bfc84 commit 7b87df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gphotosfb/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func getTokenFromWeb(ctx context.Context, config *oauth2.Config) (*oauth2.Token,
return nil, fmt.Errorf("fmt.Scan: %w", err)
}

tok, err := config.Exchange(ctx, authCode)
tok, err := config.Exchange(ctx, authCode, oauth2.AccessTypeOffline)
if err != nil {
return nil, fmt.Errorf("config.Exchange: %w", err)
}
Expand Down

0 comments on commit 7b87df5

Please sign in to comment.