mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 13:33:32 +02:00
[#160] prompt when api-token is invalid to get new token
This commit is contained in:
@@ -123,6 +123,9 @@ func register(app *kingpin.Application, o *oreo.Client, fig *figtree.FigTree) {
|
|||||||
// rerun the original request
|
// rerun the original request
|
||||||
return o.Do(req)
|
return o.Do(req)
|
||||||
}
|
}
|
||||||
|
} else if globals.AuthMethod() == "api-token" && resp.StatusCode == 401 {
|
||||||
|
globals.SetPass("")
|
||||||
|
return o.Do(req)
|
||||||
}
|
}
|
||||||
return resp, nil
|
return resp, nil
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user