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

mollie/connect/oauth2.go   A

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
cc 1
eloc 10
dl 0
loc 18
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A connect.OauthEndpoint 0 5 1
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