summaryrefslogtreecommitdiffstats
path: root/services/auth/source
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2021-11-17 20:34:35 +0800
committerGitHub <noreply@github.com>2021-11-17 20:34:35 +0800
commit750a8465f547e9f08a87612c75898d56b8ec1f88 (patch)
treef3eed8b40971c01a75617675a24014233b9f1cc7 /services/auth/source
parent29cc169d20fc995072a819da6f996717a9899b3b (diff)
downloadgitea-750a8465f547e9f08a87612c75898d56b8ec1f88.tar.gz
gitea-750a8465f547e9f08a87612c75898d56b8ec1f88.zip
A better go code formatter, and now `make fmt` can run in Windows (#17684)
* go build / format tools * re-format imports
Diffstat (limited to 'services/auth/source')
-rw-r--r--services/auth/source/oauth2/store.go1
-rw-r--r--services/auth/source/oauth2/token.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/services/auth/source/oauth2/store.go b/services/auth/source/oauth2/store.go
index fc29056c24..4026abb6ec 100644
--- a/services/auth/source/oauth2/store.go
+++ b/services/auth/source/oauth2/store.go
@@ -10,6 +10,7 @@ import (
"net/http"
"code.gitea.io/gitea/modules/log"
+
chiSession "gitea.com/go-chi/session"
"github.com/gorilla/sessions"
)
diff --git a/services/auth/source/oauth2/token.go b/services/auth/source/oauth2/token.go
index 0c7c5d8caa..c9a45340a1 100644
--- a/services/auth/source/oauth2/token.go
+++ b/services/auth/source/oauth2/token.go
@@ -9,6 +9,7 @@ import (
"time"
"code.gitea.io/gitea/modules/timeutil"
+
"github.com/golang-jwt/jwt"
)