Revert "fix: always attempt external auth refresh when fetching (#11762)"

This reverts commit 0befc0826a.
This commit is contained in:
Ammar Bandukwala
2024-01-25 14:22:47 -06:00
parent 0befc0826a
commit 79568bf628
6 changed files with 80 additions and 129 deletions

View File

@ -57,7 +57,7 @@ func (api *API) externalAuthByID(w http.ResponseWriter, r *http.Request) {
}
var eg errgroup.Group
eg.Go(func() (err error) {
res.Authenticated, res.User, err = config.ValidateToken(ctx, link.OAuthToken())
res.Authenticated, res.User, err = config.ValidateToken(ctx, link.OAuthAccessToken)
return err
})
eg.Go(func() (err error) {