mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-28 06:57:56 +02:00
Fixed oauth token refresh for source
This commit is contained in:
parent
117014a977
commit
cf3747bde2
2 changed files with 2 additions and 9 deletions
|
@ -54,7 +54,7 @@ var listensCmd = &cobra.Command{
|
|||
auth, err := backends.Authenticate(exportBackend, token, viper.GetViper())
|
||||
cobra.CheckErr(err)
|
||||
if auth {
|
||||
db.SetOAuth2Token(sourceName, token)
|
||||
defer db.SetOAuth2Token(sourceName, token)
|
||||
}
|
||||
|
||||
token, err = db.GetOAuth2Token(targetName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue