mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-25 05:47:57 +02:00
lastfm: loves import
This commit is contained in:
parent
1249238d3a
commit
406e150987
5 changed files with 57 additions and 6 deletions
|
@ -49,7 +49,10 @@ func Authenticate(service string, backend models.Backend, db storage.Database, c
|
|||
}
|
||||
conf := authenticator.OAuth2Strategy(redirectURL).Config()
|
||||
tokenSource := auth.NewDatabaseTokenSource(db, service, &conf, token)
|
||||
authenticator.OAuth2Setup(tokenSource)
|
||||
err = authenticator.OAuth2Setup(tokenSource)
|
||||
if err != nil {
|
||||
return needAuth, err
|
||||
}
|
||||
}
|
||||
return needAuth, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue