mirror of
https://github.com/rclone/rclone.git
synced 2025-08-16 00:28:09 +02:00
oauthlib: add method to set a token as expired
This can be used by backends to trigger a refresh of an access token if they detect an invalid token.
This commit is contained in:
committed by
Nick Craig-Wood
parent
62bcc84f6f
commit
53400d7edc
@ -67,3 +67,8 @@ func (r *Renew) Stop() {
|
||||
func (r *Renew) Invalidate() {
|
||||
r.ts.Invalidate()
|
||||
}
|
||||
|
||||
// Expire expires the token source
|
||||
func (r *Renew) Expire() error {
|
||||
return r.ts.Expire()
|
||||
}
|
||||
|
Reference in New Issue
Block a user