1
0
Fork 0
miniflux/ui/oauth2.go
Ilya Mateyko 4464802947 Reformat some Go files
When working on #994 I noticed that some Go files are not formatted with
`gofmt`.

This PR fixes this.
2021-01-27 18:13:58 -08:00

22 lines
525 B
Go

// Copyright 2018 Frédéric Guillot. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package ui // import "miniflux.app/ui"
import (
"context"
"miniflux.app/config"
"miniflux.app/oauth2"
)
func getOAuth2Manager(ctx context.Context) *oauth2.Manager {
return oauth2.NewManager(
ctx,
config.Opts.OAuth2ClientID(),
config.Opts.OAuth2ClientSecret(),
config.Opts.OAuth2RedirectURL(),
config.Opts.OAuth2OidcDiscoveryEndpoint(),
)
}