acd: Reauth on 401 errors

Fixes #493
Fixes #501
This commit is contained in:
Nick Craig-Wood
2016-05-28 16:49:26 +01:00
parent 83c3bb2f1a
commit 0a922ad1dc
6 changed files with 70 additions and 41 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ func (f *Fs) getCredentials() (err error) {
// NewFs constructs an Fs from the path, container:path
func NewFs(name, root string) (fs.Fs, error) {
client, err := oauthutil.NewClient(name, oauthConfig)
client, _, err := oauthutil.NewClient(name, oauthConfig)
if err != nil {
return nil, fmt.Errorf("Failed to configure Hubic: %v", err)
}