GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#170)
by Victor Hugo
02:26 queued 11s
created

connect.OauthEndpoint   A

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 5
dl 0
loc 5
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
nop 0
1
package connect
2
3
import (
4
	"golang.org/x/oauth2"
5
)
6
7
// Mollie's Oauth2 server URLs.
8
const (
9
	authURL   = "https://www.mollie.com/oauth2/authorize"
10
	tokensURL = "https://api.mollie.com/oauth2/tokens"
11
)
12
13
// OauthEndpoint is Mollies's OAuth 2.0 endpoint.
14
func OauthEndpoint() *oauth2.Endpoint {
15 1
	return &oauth2.Endpoint{
16
		AuthURL:   authURL,
17
		TokenURL:  tokensURL,
18
		AuthStyle: 0,
19
	}
20
}
21